big bug fixes
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
// https://nuxt.com/docs/api/configuration/nuxt-config
|
||||
export default defineNuxtConfig({
|
||||
ssr: true,
|
||||
// in SSG mode, we dont want to prerender pages since that will do actual API calls
|
||||
// and cause pages like /admin to literally be a redirect to /login
|
||||
ssr: process.env.RENDERING_MODE !== 'static',
|
||||
compatibilityDate: '2024-04-03',
|
||||
|
||||
css: ['~/assets/css/main.css'],
|
||||
@@ -12,7 +14,10 @@ export default defineNuxtConfig({
|
||||
nitro: {
|
||||
routeRules: {
|
||||
'/api/**': { proxy: 'http://localhost:1323/api/**' },
|
||||
'/test/**': { proxy: 'http://localhost:1323/api/**' },
|
||||
},
|
||||
// these routes never change so we can statically prerender them
|
||||
prerender: {
|
||||
routes: ['/login', '/signup', '/']
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user