big bug fixes

This commit is contained in:
Zoe
2024-10-02 02:57:49 -05:00
parent e64b9fba7f
commit 1a6aa40da1
21 changed files with 171 additions and 239 deletions

View File

@@ -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', '/']
}
},