mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
disable next.js turbo mode
This commit is contained in:
@@ -55,6 +55,7 @@ const OG_TYPE_DICT: Record<Route['pathname'], OGPageType> = {
|
||||
'/api/proxy': 'Regular page',
|
||||
'/api/csrf': 'Regular page',
|
||||
'/api/healthz': 'Regular page',
|
||||
'/api/config': 'Regular page',
|
||||
'/auth/auth0': 'Regular page',
|
||||
'/auth/unverified-email': 'Regular page',
|
||||
};
|
||||
|
||||
@@ -59,6 +59,7 @@ const TEMPLATE_MAP: Record<Route['pathname'], string> = {
|
||||
'/api/proxy': DEFAULT_TEMPLATE,
|
||||
'/api/csrf': DEFAULT_TEMPLATE,
|
||||
'/api/healthz': DEFAULT_TEMPLATE,
|
||||
'/api/config': DEFAULT_TEMPLATE,
|
||||
'/auth/auth0': DEFAULT_TEMPLATE,
|
||||
'/auth/unverified-email': DEFAULT_TEMPLATE,
|
||||
};
|
||||
|
||||
@@ -55,6 +55,7 @@ const TEMPLATE_MAP: Record<Route['pathname'], string> = {
|
||||
'/api/proxy': '%network_name% node API proxy',
|
||||
'/api/csrf': '%network_name% node API CSRF token',
|
||||
'/api/healthz': '%network_name% node API health check',
|
||||
'/api/config': '%network_name% node API health check',
|
||||
'/auth/auth0': '%network_name% authentication',
|
||||
'/auth/unverified-email': '%network_name% unverified email',
|
||||
};
|
||||
|
||||
@@ -53,6 +53,7 @@ export const PAGE_TYPE_DICT: Record<Route['pathname'], string> = {
|
||||
'/api/proxy': 'Node API: Proxy',
|
||||
'/api/csrf': 'Node API: CSRF token',
|
||||
'/api/healthz': 'Node API: Health check',
|
||||
'/api/config': 'Node API: Health check',
|
||||
'/auth/auth0': 'Auth',
|
||||
'/auth/unverified-email': 'Unverified email',
|
||||
};
|
||||
|
||||
+9
-8
@@ -47,14 +47,15 @@ const moduleExports = {
|
||||
productionBrowserSourceMaps: true,
|
||||
experimental: {
|
||||
instrumentationHook: process.env.NEXT_OPEN_TELEMETRY_ENABLED === 'true',
|
||||
turbo: {
|
||||
rules: {
|
||||
'*.svg': {
|
||||
loaders: [ '@svgr/webpack' ],
|
||||
as: '*.js',
|
||||
},
|
||||
},
|
||||
},
|
||||
// disabled as it is not stable yet
|
||||
// turbo: {
|
||||
// rules: {
|
||||
// '*.svg': {
|
||||
// loaders: [ '@svgr/webpack' ],
|
||||
// as: '*.js',
|
||||
// },
|
||||
// },
|
||||
// },
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Vendored
+1
@@ -15,6 +15,7 @@ declare module "nextjs-routes" {
|
||||
| StaticRoute<"/accounts">
|
||||
| DynamicRoute<"/address/[hash]/contract-verification", { "hash": string }>
|
||||
| DynamicRoute<"/address/[hash]", { "hash": string }>
|
||||
| StaticRoute<"/api/config">
|
||||
| StaticRoute<"/api/csrf">
|
||||
| StaticRoute<"/api/healthz">
|
||||
| StaticRoute<"/api/log">
|
||||
|
||||
@@ -28,5 +28,5 @@ dotenv \
|
||||
-v NEXT_PUBLIC_GIT_TAG=$(git describe --tags --abbrev=0) \
|
||||
-e $config_file \
|
||||
-e $secrets_file \
|
||||
-- bash -c './deploy/scripts/make_envs_script.sh && next dev -p $NEXT_PUBLIC_APP_PORT --turbo' |
|
||||
-- bash -c './deploy/scripts/make_envs_script.sh && next dev -p $NEXT_PUBLIC_APP_PORT' |
|
||||
pino-pretty
|
||||
Reference in New Issue
Block a user