You've already forked obsidian-visualiser
Finished registration + working on own useAuth composable
This commit is contained in:
@@ -2,45 +2,17 @@
|
||||
import CanvasModule from './transformer/canvas/module'
|
||||
|
||||
export default defineNuxtConfig({
|
||||
modules: [CanvasModule, "@nuxt/content", "@nuxtjs/color-mode", '@sidebase/nuxt-auth'],
|
||||
|
||||
modules: [CanvasModule, "@nuxt/content", "@nuxtjs/color-mode"],
|
||||
css: ['~/assets/common.css', '~/assets/global.css'],
|
||||
runtimeConfig: {
|
||||
dbFile: ''
|
||||
},
|
||||
components: [
|
||||
{
|
||||
path: '~/components',
|
||||
pathPrefix: false,
|
||||
},
|
||||
],
|
||||
|
||||
router: {
|
||||
options: {
|
||||
scrollBehaviorType: 'smooth'
|
||||
}
|
||||
},
|
||||
|
||||
auth: {
|
||||
baseURL: '/api/auth',
|
||||
provider: {
|
||||
type: 'local',
|
||||
//type: 'refresh',
|
||||
endpoints: {
|
||||
signIn: { path: '/login', method: 'post' },
|
||||
signOut: { path: '/logout', method: 'post' },
|
||||
signUp: { path: '/register', method: 'post' },
|
||||
getSession: { path: '/session', method: 'get' },
|
||||
//refresh: { path: '/refresh', method: 'post' }
|
||||
},
|
||||
session: {
|
||||
dataType: {
|
||||
id: 'string',
|
||||
username: 'string',
|
||||
email: 'string',
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
css: ['~/assets/common.css', '~/assets/global.css'],
|
||||
|
||||
content: {
|
||||
ignores: [
|
||||
'98.Privé'
|
||||
@@ -78,12 +50,5 @@ export default defineNuxtConfig({
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
vite: {
|
||||
vue: {
|
||||
customElement: ['Line', 'Circle', 'Path']
|
||||
}
|
||||
},
|
||||
|
||||
compatibilityDate: '2024-07-25'
|
||||
})
|
||||
Reference in New Issue
Block a user