Skip to content

Commit 67721f3

Browse files
committed
fix: prettier
1 parent 4b6cf19 commit 67721f3

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

packages/runtime/src/index.ts

+12-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,13 @@ import {
3131
getSSRLambdas,
3232
} from './helpers/functions'
3333
import { generateRedirects, generateStaticRedirects } from './helpers/redirects'
34-
import { shouldSkip, isNextAuthInstalled, getCustomImageResponseHeaders, getRemotePatterns, ExperimentalConfigWithLegacy } from './helpers/utils'
34+
import {
35+
shouldSkip,
36+
isNextAuthInstalled,
37+
getCustomImageResponseHeaders,
38+
getRemotePatterns,
39+
ExperimentalConfigWithLegacy,
40+
} from './helpers/utils'
3541
import {
3642
verifyNetlifyBuildVersion,
3743
checkNextSiteHasBuilt,
@@ -248,7 +254,11 @@ const plugin: NetlifyPlugin = {
248254
await checkZipSize(join(FUNCTIONS_DIST, `${ODB_FUNCTION_NAME}.zip`))
249255
const nextConfig = await getNextConfig({ publish, failBuild })
250256

251-
const { basePath, appDir, experimental } : {basePath: string, appDir?: string, experimental: ExperimentalConfigWithLegacy} = nextConfig
257+
const {
258+
basePath,
259+
appDir,
260+
experimental,
261+
}: { basePath: string; appDir?: string; experimental: ExperimentalConfigWithLegacy } = nextConfig
252262

253263
generateCustomHeaders(nextConfig, headers)
254264

packages/runtime/src/templates/server.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { join } from 'path'
12
// eslint-disable-next-line n/no-deprecated-api -- this is what Next.js uses as well
23
import { parse } from 'url'
34

@@ -6,6 +7,8 @@ import type { PrerenderManifest } from 'next/dist/build'
67
import type { BaseNextResponse } from 'next/dist/server/base-http'
78
import type { NodeRequestHandler, Options } from 'next/dist/server/next-server'
89

10+
import { ExperimentalConfigWithLegacy } from '../helpers/utils'
11+
912
import {
1013
netlifyApiFetch,
1114
NextServerType,
@@ -15,8 +18,6 @@ import {
1518
unlocalizeRoute,
1619
getMatchedRoute,
1720
} from './handlerUtils'
18-
import { join } from 'path'
19-
import { ExperimentalConfigWithLegacy } from '../helpers/utils'
2021

2122
interface NetlifyConfig {
2223
revalidateToken?: string
@@ -96,7 +97,7 @@ const getNetlifyNextServer = (NextServer: NextServerType) => {
9697
const routes = routesManifest && [...routesManifest.staticRoutes, ...routesManifest.dynamicRoutes]
9798
const matchedRoute = await getMatchedRoute(path, routes, parsedUrl, basePath, trailingSlash)
9899
const isAppRoute = appPathsRoutes && matchedRoute ? appPathsRoutes[matchedRoute.page] : false
99-
100+
100101
if (isAppRoute) {
101102
// app routes should use prebundled React
102103
// eslint-disable-next-line no-underscore-dangle

0 commit comments

Comments
 (0)