Skip to content

Commit 06a9d81

Browse files
committed
minor(modeling-commons): prefer ISR for static pages
1 parent 7b5d8d1 commit 06a9d81

2 files changed

Lines changed: 6 additions & 9 deletions

File tree

apps/modeling-commons-frontend/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ RUN apk add --no-cache dumb-init
44

55
ENV NODE_ENV=production HOST=0.0.0.0 NITRO_PORT=3005
66
ENV NUXT_PUBLIC_API_BASE="https://beta.modelingcommons.org"
7+
ENV NUXT_API_BASE="https://beta.modelingcommons.org"
78
ENV NUXT_PUBLIC_AUTH_BASE="https://beta.modelingcommons.org/api/auth"
89
ENV NUXT_PUBLIC_AUTH_API_BASE="https://beta.modelingcommons.org/api/auth"
910
ENV NUXT_PUBLIC_APP_URL="https://beta.modelingcommons.org"

apps/modeling-commons-frontend/nuxt.config.ts

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,11 @@ export default defineNuxtConfig({
131131
ssr: false,
132132
},
133133

134-
"/privacy": { prerender: true },
135-
"/terms-of-service": { prerender: true },
136-
"/cookies": { prerender: true },
137-
"/about": { prerender: true },
138-
"/donate": { prerender: true },
134+
"/privacy": { isr: true },
135+
"/terms-of-service": { isr: true },
136+
"/cookies": { isr: true },
137+
"/about": { isr: true },
138+
"/donate": { isr: true },
139139
},
140140

141141
vite: {
@@ -179,10 +179,6 @@ export default defineNuxtConfig({
179179
},
180180
},
181181

182-
csurf: {
183-
https: process.env.NODE_ENV === "production",
184-
},
185-
186182
linkChecker: { enabled: false },
187183

188184
nitro: {

0 commit comments

Comments
 (0)