38 lines
1.0 KiB
TypeScript
38 lines
1.0 KiB
TypeScript
// https://nuxt.com/docs/api/configuration/nuxt-config
|
|
export default defineNuxtConfig({
|
|
compatibilityDate: "2025-07-15",
|
|
ssr: false,
|
|
devtools: { enabled: false },
|
|
modules: ["@pinia/nuxt", "@sidebase/nuxt-auth"],
|
|
runtimeConfig: {
|
|
baseURL: "http://localhost:3000",
|
|
},
|
|
auth: {
|
|
globalAppMiddleware: false,
|
|
baseURL: "http://localhost:8000/auth",
|
|
provider: {
|
|
type: "local",
|
|
endpoints: {
|
|
signIn: { path: "/jwt/create/", method: "post" },
|
|
signOut: false,
|
|
signUp: { path: "/users/", method: "post" },
|
|
getSession: { path: "/users/me/", method: "get" },
|
|
},
|
|
pages: {
|
|
login: "/login",
|
|
},
|
|
token: {
|
|
signInResponseTokenPointer: "/access",
|
|
type: "JWT",
|
|
headerName: "Authorization",
|
|
},
|
|
sessionDataType: {},
|
|
},
|
|
enableSessionRefreshPeriodically: 5000,
|
|
enableSessionRefreshOnWindowFocus: true,
|
|
},
|
|
css: ["vuetify/styles", "@mdi/font/css/materialdesignicons.min.css"],
|
|
plugins: ["~/plugins/vuetify.js"],
|
|
components: true,
|
|
});
|