-
Notifications
You must be signed in to change notification settings - Fork 0
/
edgio.config.js
118 lines (107 loc) · 4.89 KB
/
edgio.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
// This file was automatically added by edgio init.
// You should commit this file to source control.
// Learn more about this file at https://docs.edg.io/guides/edgio_config
module.exports = {
connector: "@edgio/next",
// The name of the site in Edgio to which this app should be deployed.
name: "gitignore",
// The name of the organization in Edgio to which this app should be deployed.
organization: "profiq",
// Overrides the default path to the routes file. The path should be relative to the root of your app.
// routes: 'routes.js',
// When set to true or omitted entirely, Edgio includes the deployment number in the cache key,
// effectively purging the cache each time you deploy.
// purgeCacheOnDeploy: false,
cloudRuntime: "nodejs20.x",
environments: {
prod: {
hostnames: [{ hostname: "gitignore.profiq.com" }],
},
dev: {
hostnames: [{ hostname: "dev.gitignore.profiq.com" }],
},
},
next: {
// Output sourcemaps so that stack traces have original source filenames and line numbers when tailing
// the logs in the Edgio developer console.
// This config options replaces the edgioSourceMaps option in next.config.js.
// @default true
// generateSourceMaps: true
//
// Disables the Edgio image optimizer and allows to use the Next's built in image optimizer.
// This config options replaces the disableImageOptimizer option in edgio.config.js root.
// @default false
// disableImageOptimizer: false
//
// Disables the Edgio development tools widget on the site.
// This config options replaces the disableEdgioDevTools option in next.config.js.
// @default false
// disableDevtools: false
//
// Disables the build of the service worker.
// @default false
// disableServiceWorker: false
//
// Forces the @edgio/next connector to use the server build.
// This config option replaces the NEXT_FORCE_SERVER_BUILD env variable.
// @default false
// forceServerBuild: false
//
// Optimizes the server build by bundling all server assets and decreasing the overall startup time.
// This option has no effect on apps with serverless build.
// This option is set to false for Next 13.x apps.
// @default true
// optimizeServerBuild: true
//
// Set this option to false to remove the default rule that proxies all requests to Next.js in serverless.
// This is useful if you want to proxy all unmatched pages to different origin.
// @default true
// proxyToServerlessByDefault: true
//
// Set this option to true to honor Next's internal redirects that either add or remove a trailing slash
// depending on the value of the `trailingSlash` config. When set to false, these internal redirects are not honored,
// so sites that fallback to serving from an origin do not add or remove the trailing slash for origin URLs.
// @default true
// enforceTrailingSlash: true
},
// If you need to proxy some URLs to an origin instead of your Next.js app, you can configure the origins here:
// origins: [
// {
// // The name of the backend origin
// name: "origin",
//
// // When provided, the following value will be sent as the host header when connecting to the origin.
// // If omitted, the host header from the browser will be forwarded to the origin.
// override_host_header: "test-origin.edgio.net",
//
// // The list of backend hosts
// hosts: [
// {
// // The domain name or IP address of the origin server
// location: "test-origin.edgio.net"
// }
// ]
// }
// ],
// Options for hosting serverless functions on Edgio
// serverless: {
// // Set to true to include all packages listed in the dependencies property of package.json when deploying to Edgio.
// // This option generally isn't needed as Edgio automatically includes all modules imported by your code in the bundle that
// // is uploaded during deployment
// includeNodeModules: true,
//
// // Include additional paths that are dynamically loaded by your app at runtime here when building the serverless bundle.
// include: ['views/**/*'],
// },
// The maximum number of URLs that will be concurrently prerendered during deployment when static prerendering is enabled.
// Defaults to 200, which is the maximum allowed value.
// prerenderConcurrency: 200,
// A list of glob patterns identifying which prerenderConcurrency source files should be uploaded when running edgio deploy --includeSources.
// This option is primarily used to share source code with Edgio support personnel for the purpose of debugging. If omitted,
// edgio deploy --includeSources will result in all files which are not gitignored being uploaded to Edgio.
//
// sources : [
// '**/*', // include all files
// '!(**/secrets/**/*)', // except everything in the secrets directory
// ],
};