@kapa.ai would this be alright for the nuxthub deployment? export default defineNuxtConfig({
compatibilityDate: '2024-11-01',
devtools: { enabled: true },
modules: [
'@nuxthub/core',
'@sidebase/nuxt-auth',
'@nuxtjs/tailwindcss'
],
alias: {
'string_decoder': 'string_decoder/',
},
hub: {
database: true,
},
components: [
{ path: '~/components', pathPrefix: true },
],
watchers: {
webpack: {
ignored: ['**/server/plugins/**']
}
},
auth: {
isEnabled: true,
globalAppMiddleware: true,
originEnvKey: 'AUTH_ORIGIN',
baseURL: 'http://localhost:3000/api/auth',
provider: {
type: 'local',
endpoints: {
signIn: { path: '/login', method: 'post' },
signUp: { path: '/register', method: 'post' },
getSession: { path: '/session', method: 'get' },
},
session: {
dataType: { //subject to change
id: 'string | number',
username: 'string',
},
},
token: {
signInResponseTokenPointer: '/token',
type: 'Bearer',
cookieName: 'auth.token',
headerName: 'Authorization',
maxAgeInSeconds: 21600,
sameSiteAttribute: 'lax',
cookieDomain: ''
},
},
},
nitro: {
preset: 'cloudflare-pages',
},
})
export default defineNuxtConfig({
compatibilityDate: '2024-11-01',
devtools: { enabled: true },
modules: [
'@nuxthub/core',
'@sidebase/nuxt-auth',
'@nuxtjs/tailwindcss'
],
alias: {
'string_decoder': 'string_decoder/',
},
hub: {
database: true,
},
components: [
{ path: '~/components', pathPrefix: true },
],
watchers: {
webpack: {
ignored: ['**/server/plugins/**']
}
},
auth: {
isEnabled: true,
globalAppMiddleware: true,
originEnvKey: 'AUTH_ORIGIN',
baseURL: 'http://localhost:3000/api/auth',
provider: {
type: 'local',
endpoints: {
signIn: { path: '/login', method: 'post' },
signUp: { path: '/register', method: 'post' },
getSession: { path: '/session', method: 'get' },
},
session: {
dataType: { //subject to change
id: 'string | number',
username: 'string',
},
},
token: {
signInResponseTokenPointer: '/token',
type: 'Bearer',
cookieName: 'auth.token',
headerName: 'Authorization',
maxAgeInSeconds: 21600,
sameSiteAttribute: 'lax',
cookieDomain: ''
},
},
},
nitro: {
preset: 'cloudflare-pages',
},
})