MCPcopy Create free account
hub / github.com/api-platform/website / redirects

Function redirects

pwa/next.config.mjs:165–188  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

163 ];
164 },
165 async redirects() {
166 return [
167 {
168 source: "/docs/",
169 destination: "/docs/symfony/",
170 permanent: true,
171 },
172 {
173 source: "/docs/distribution/",
174 destination: "/docs/symfony/",
175 permanent: true,
176 },
177 ];
178 },
179 experimental: {
180 serverMinification: false,
181 },
182};
183
184// eslint-disable-next-line @typescript-eslint/no-var-requires
185const withMDX = nextMDX({
186 extension: /\.(mdx)$/, // We have errors inside our md files on the documentation that we should fix to use MDX instead of MarkdownIt
187 options: {
188 remarkPlugins: [remarkFrontmatter, remarkMdxFrontmatter],
189 rehypePlugins: [
190 [rehypePrettyCode, prettyOptions],
191 transformCustomLinks,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected