You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let pathname = pathname_for_path(next_router_root, next_router_path, path_type);
304
+
let reference_type = Value::new(ReferenceType::Entry(EntryReferenceSubType::Page));
335
305
336
-
let definition_page = format!("/{}", next_original_path.await?);
337
-
let definition_pathname = pathname.await?;
306
+
let pathname = pathname_for_path(next_router_root, next_router_path,PathType::Page);
338
307
339
308
let ssr_module = ssr_module_context.process(source, reference_type.clone());
340
309
341
-
letmut result = RopeBuilder::default();
342
-
343
-
match path_type {
344
-
PathType::Page => {
345
-
// Sourced from https://github.com/vercel/next.js/blob/2848ce51d1552633119c89ab49ff7fe2e4e91c91/packages/next/src/build/webpack/loaders/next-route-loader/index.ts
346
-
writedoc!(
347
-
result,
348
-
r#"
349
-
import RouteModule from "next/dist/server/future/route-modules/pages/module"
350
-
import {{ hoist }} from "next/dist/build/webpack/loaders/next-route-loader/helpers"
351
-
352
-
import Document from "@vercel/turbopack-next/pages/_document"
353
-
import App from "@vercel/turbopack-next/pages/_app"
// Sourced from https://github.com/vercel/next.js/blob/2848ce51d1552633119c89ab49ff7fe2e4e91c91/packages/next/src/build/webpack/loaders/next-route-loader/index.ts
402
-
writedoc!(
403
-
result,
404
-
r#"
405
-
import RouteModule from "next/dist/server/future/route-modules/pages-api/module"
406
-
import {{ hoist }} from "next/dist/build/webpack/loaders/next-route-loader/helpers"
407
-
408
-
import * as userland from "INNER"
409
-
410
-
export default hoist(userland, "default")
411
-
export const config = hoist(userland, "config")
412
-
413
-
export const routeModule = new RouteModule({{
414
-
definition: {{
415
-
kind: "PAGES_API",
416
-
page: "{definition_page}",
417
-
pathname: "{definition_pathname}",
418
-
// The following aren't used in production, but are
0 commit comments