Files
listas_frontend_nuxt/nuxt.config.ts
clonbg 54dbc4465d Add image upload functionality to profile page
The changes add file upload capabilities to the user profile page,
including: - File input control for selecting images - Basic image
upload handling infrastructure - Better layout with two-column design -
More robust date display

The subject line alone captures the key functional change.
2025-08-13 10:57:32 +02:00

57 lines
1.7 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", "nuxt-file-storage"],
fileStorage: {
mount: "/home/clonbg/Programar/git/curso_django/listas_rest/media/media",
},
runtimeConfig: {
baseURL: "http://localhost:3000",
},
auth: {
globalAppMiddleware: false,
baseURL: "http://localhost:8000/auth",
provider: {
type: "local",
token: {
signInResponseTokenPointer: "/access",
type: "JWT",
headerName: "Authorization",
cookieName: "authls.atoken",
maxAgeInSeconds: 30 * 59,
},
refresh: {
isEnabled: true,
endpoint: { path: "/jwt/refresh/", method: "post" },
refreshOnlyToken: false,
token: {
signInResponseRefreshTokenPointer: "/refresh",
refreshResponseTokenPointer: "/access",
refreshRequestTokenPointer: "/refresh",
cookieName: "authls.rtoken",
maxAgeInSeconds: 60 * 60 * 23, // En 23 horas refresca automáticamente
sameSiteAttribute: "strict",
},
},
endpoints: {
signIn: { path: "/jwt/create/", method: "post" },
signOut: false,
signUp: { path: "/users/", method: "post" },
getSession: { path: "/users/me/", method: "get" },
},
pages: {
login: "/login",
},
sessionDataType: {},
},
enableSessionRefreshPeriodically: 5000,
enableSessionRefreshOnWindowFocus: true,
},
css: ["vuetify/styles", "@mdi/font/css/materialdesignicons.min.css"],
plugins: ["~/plugins/vuetify.js"],
components: true,
});