Files
front/nuxt.config.ts
T
legonzaur 08fb23e729
release-tag / release-image (push) Successful in 29s
Fix : prevent fetching back data on build
2024-08-02 09:08:59 +02:00

24 lines
634 B
TypeScript

// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true },
ssr: true,
runtimeConfig: {
public: {
welcomeMessage: "Hello",
endpoint: "https://playtest.legonzaur.fr/api", // can be overridden by NUXT_PUBLIC_ENDPOINT environment variable
discordLoginEndpoint: process.env.NUXT_PUBLIC_DISCORD_LOGIN_ENDPOINT,
},
},
modules: ["@pinia/nuxt", "@pinia-plugin-persistedstate/nuxt"],
vue: {
runtimeCompiler: true,
},
nitro: {
prerender: {
routes: ["/rules", "/login", "/game", "/lobby"],
crawlLinks: true,
},
},
});