-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnext.config.js
49 lines (47 loc) · 1.62 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
39
40
41
42
43
44
45
46
47
48
49
require("dotenv").config();
const withPWA = require("next-pwa")({
dest: "public",
disable: process.env.NODE_ENV === "development",
register: true,
skipWaiting: true,
});
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
env: {
DATABASE_ID: process.env.DATABASE_ID,
COLLECTION_ID: process.env.COLLECTION_ID,
PROJECT_ID: process.env.PROJECT_ID,
CLIENT_URL: process.env.CLIENT_URL,
BUCKET_ID: process.env.BUCKET_ID,
USERS_DATABASE_ID: process.env.USERS_DATABASE_ID,
UPCOMING_APPOINTMENTS_COLLECTION_ID:
process.env.UPCOMING_APPOINTMENTS_COLLECTION_ID,
APPOINTMENT_HISTORIES_COLLECTION_ID:
process.env.APPOINTMENT_HISTORIES_COLLECTION_ID,
NEXT_PUBLIC_DATABASE_ID: process.env.NEXT_PUBLIC_DATABASE_ID,
NEXT_PUBLIC_COLLECTION_ID: process.env.NEXT_PUBLIC_COLLECTION_ID,
NEXT_PUBLIC_PROJECT_ID: process.env.NEXT_PUBLIC_PROJECT_ID,
NEXT_PUBLIC_CLIENT_URL: process.env.NEXT_PUBLIC_CLIENT_URL,
NEXT_PUBLIC_BUCKET_ID: process.env.NEXT_PUBLIC_BUCKET_ID,
NEXT_PUBLIC_USERS_DATABASE_ID: process.env.NEXT_PUBLIC_USERS_DATABASE_ID,
NEXT_PUBLIC_UPCOMING_APPOINTMENTS_COLLECTION_ID:
process.env.NEXT_PUBLIC_UPCOMING_APPOINTMENTS_COLLECTION_ID,
NEXT_PUBLIC_APPOINTMENT_HISTORIES_COLLECTION_ID:
process.env.NEXT_PUBLIC_APPOINTMENT_HISTORIES_COLLECTION_ID,
},
images: {
remotePatterns: [
{
protocol: "https",
hostname: "images.unsplash.com",
},
{
protocol: "https",
hostname: "cloud.appwrite.io",
},
],
minimumCacheTTL: 1500000,
},
};
module.exports = withPWA(nextConfig);