Skip to content

Commit 6e021de

Browse files
authored
(SP: 1) [FIX] Fix Netlify SSR runtime env vars for develop deploy (#425)
1 parent 04191f8 commit 6e021de

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

frontend/next.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ import createNextIntlPlugin from 'next-intl/plugin';
55
const withNextIntl = createNextIntlPlugin('./i18n/request.ts');
66

77
const nextConfig: NextConfig = {
8+
env: {
9+
APP_ENV: process.env.APP_ENV,
10+
DATABASE_URL: process.env.DATABASE_URL,
11+
},
812
images: {
913
remotePatterns: [
1014
{

netlify.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
command = "npm ci --include=optional && npm run build"
44
publish = ".next"
55

6-
[functions]
7-
node_bundler = "esbuild"
8-
96
[build.environment]
107
NODE_VERSION = "20.19.0"
118

0 commit comments

Comments
 (0)