Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

next.config.js 792 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
  1. const { productIds } = require('./lib/all-products')
  2. const languages = require('./lib/languages')
  3. module.exports = {
  4. // speed up production `next build` by ignoring typechecking during that step of build.
  5. // type-checking still occurs in the Dockerfile build
  6. future: {
  7. webpack: 5,
  8. },
  9. typescript: {
  10. ignoreBuildErrors: true
  11. },
  12. eslint: {
  13. ignoreDuringBuilds: true,
  14. },
  15. i18n: {
  16. locales: Object.values(languages).map(({ code }) => code),
  17. defaultLocale: 'en'
  18. },
  19. sassOptions: {
  20. quietDeps: true
  21. },
  22. async rewrites () {
  23. const DEFAULT_VERSION = 'free-pro-team@latest'
  24. return productIds.map((productId) => {
  25. return {
  26. source: `/${productId}/:path*`,
  27. destination: `/${DEFAULT_VERSION}/${productId}/:path*`
  28. }
  29. })
  30. }
  31. }
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...