Replace hardcoded GHOST_API_KEY with process.env.GHOST_API_KEY in API routes to enhance security. Update Docker commands in the CI workflow to pass the GHOST_API_KEY as an environment variable. Add GHOST_API_KEY to the Next.js configuration for consistent access across the application.
10 lines
165 B
TypeScript
10 lines
165 B
TypeScript
import type { NextConfig } from "next";
|
|
|
|
const nextConfig: NextConfig = {
|
|
env: {
|
|
GHOST_API_KEY: process.env.GHOST_API_KEY,
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|