-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnuxt.config.ts
More file actions
50 lines (43 loc) · 1.32 KB
/
nuxt.config.ts
File metadata and controls
50 lines (43 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// https://nuxt.com/docs/api/configuration/nuxt-config
// for production
const BASE_URL = 'https://dliibapi.azurewebsites.net';
// for local development
// const BASE_URL = 'http://localhost:5214';
export default defineNuxtConfig({
devtools: { enabled: true },
modules: ['@nuxtjs/tailwindcss', '@sidebase/nuxt-auth'],
runtimeConfig: {
public: {
baseURL: BASE_URL,
},
},
app: {
head: {
title: '드립 : dliib',
meta: [{ charset: 'utf-8' }, { name: 'viewport', content: 'width=device-width, initial-scale=1' }],
htmlAttrs: {
lang: 'ko',
},
},
},
auth: {
baseURL: BASE_URL + '/api/auth',
provider: {
type: 'refresh',
endpoints: {
signIn: { path: '/login', method: 'post' },
signOut: { path: '/logout', method: 'post' },
signUp: { path: '/signup', method: 'post' },
getSession: { path: '/getSession', method: 'get' },
refresh: { path: '/refresh', method: 'post' },
},
pages: {
login: '/account/login',
},
token: { signInResponseTokenPointer: '/accessToken', maxAgeInSeconds: 3600 },
refreshToken: { signInResponseRefreshTokenPointer: '/refreshToken', maxAgeInSeconds: 3600 * 24 * 30 },
sessionDataType: { email: 'string' },
},
},
compatibilityDate: '2025-02-11',
});