MCPcopy Create free account
hub / github.com/github/docs / rewrites

Function rewrites

next.config.js:28–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26 quietDeps: true,
27 },
28 async rewrites() {
29 const DEFAULT_VERSION = 'free-pro-team@latest'
30 return productIds.map((productId) => {
31 return {
32 source: `/${productId}/:path*`,
33 destination: `/${DEFAULT_VERSION}/${productId}/:path*`,
34 }
35 })
36 },
37 webpack: (config) => {
38 config.experiments = config.experiments || {}
39 config.experiments.topLevelAwait = true

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected