-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
38 lines (34 loc) · 1.07 KB
/
next.config.js
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
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
images: {
domains: ['books.google.com', 'lh3.googleusercontent.com'],
},
env: {
API_URL: process.env.NEXT_PUBLIC_API_URL,
API_KEY: process.env.NEXT_PUBLIC_API_KEY,
FIREBASE_API_KEY: process.env.NEXT_FIREBASE_API_KEY,
FIREBASE_AUTH_DOMAIN: process.env.NEXT_FIREBASE_AUTH_DOMAIN,
FIREBASE_PROJECT_ID: process.env.NEXT_FIREBASE_PROJECT_ID,
FIREBASE_STORAGE_BUCKET: process.env.NEXT_FIREBASE_STORAGE_BUCKET,
FIREBASE_MESSAGING_SENDER_ID: process.env.NEXT_FIREBASE_MESSAGING_SENDER_ID,
FIREBASE_APP_ID: process.env.NEXT_FIREBASE_APP_ID,
FIREBASE_MEASUREMENT_ID: process.env.NEXT_FIREBASE_MEASUREMENT_ID,
},
pageExtensions: ['page.tsx', 'page.ts', 'page.jsx', 'page.js'],
redirects: async () => {
return [
{
source: '/sign-in',
destination: '/',
permanent: true,
},
{
source: '/detail-book/:id',
destination: '/',
permanent: true,
},
];
},
};
module.exports = nextConfig;