-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
62 lines (52 loc) · 1.74 KB
/
nuxt.config.ts
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
51
52
53
54
55
56
57
58
59
60
61
62
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
compatibilityDate: '2024-11-01',
devtools: { enabled: true },
nitro: {
preset: "cloudflare-pages"
},
modules: ["nitro-cloudflare-dev", '@nuxtjs/tailwindcss','nuxt-og-image'],
tailwindcss: {
cssPath: '~/assets/css/tailwind.css',
configPath: 'tailwind.config',
exposeConfig: {
level: 2
},
config: {},
viewer: true,
},
runtimeConfig: {
public: {
FIREBASE_API_KEY: process.env.FIREBASE_API_KEY,
FIREBASE_AUTH_DOMAIN: process.env.FIREBASE_AUTH_DOMAIN,
FIREBASE_PROJECT_ID: process.env.FIREBASE_PROJECT_ID,
FIREBASE_STORAGE_BUCKET: process.env.FIREBASE_STORAGE_BUCKET,
FIREBASE_MESSAGING_SENDER_ID: process.env.FIREBASE_MESSAGING_SENDER_ID,
FIREBASE_APP_ID: process.env.FIREBASE_APP_ID,
FIREBASE_MEASUREMENT_ID: process.env.FIREBASE_MEASUREMENT_ID,
HOSHISEN_TOKEN_KEY: process.env.HOSHISEN_TOKEN_KEY,
HOSHISEN_ACCESS_KEY: process.env.HOSHISEN_ACCESS_KEY,
HOSHISEN_SECRET_ACCESS_KEY: process.env.HOSHISEN_SECRET_ACCESS_KEY,
HOSHISEN_ENDPOINT: process.env.HOSHISEN_ENDPOINT,
},
},
typescript: {
strict: true
},
ssr: true,
plugins: ['~/plugins/firebase.client'],
vite: {
server: {
proxy: {
'/__/auth/': {
target: 'https://p2hacks2024-post-8.firebaseapp.com', // 転送先のURL, ユーザー認証をリダイレクトに変更したため必要
changeOrigin: true, // CORSヘッダーをターゲットのものに変更
rewrite: (path) => path.replace(/^\/__\/auth\//, '/__/auth/'), // パスの調整(この場合、実質不要)
},
},
},
},
app: {
baseURL: '/'
},
})