manifest.js 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. export const sampleBuildManifest = {
  2. pages: {
  3. '/': [],
  4. '/[dynamic]': [],
  5. '/_app': [],
  6. '/_error': [],
  7. },
  8. };
  9. export const samplePreRenderManifest = {
  10. routes: {
  11. '/page-0': {},
  12. '/page-1': {},
  13. '/page-2': {},
  14. '/page-3': {},
  15. },
  16. notFoundRoutes: [],
  17. };
  18. export const sampleManifest = {
  19. build: sampleBuildManifest,
  20. preRender: samplePreRenderManifest,
  21. };
  22. export const sampleI18nBuildManifest = {
  23. pages: {
  24. '/': [],
  25. '/about': [],
  26. '/[dynamic]': [],
  27. '/_app': [],
  28. '/_error': [],
  29. },
  30. };
  31. export const sampleI18nPreRenderManifest = {
  32. routes: {
  33. '/en-US': {},
  34. '/fr': {},
  35. '/en-US/about': {},
  36. '/fr/about': {},
  37. '/page-0': {},
  38. '/page-1': {},
  39. '/en-US/page-1': {},
  40. '/page-2': {},
  41. '/fr/page-2': {},
  42. '/page-3': {},
  43. },
  44. notFoundRoutes: [],
  45. };
  46. export const sampleRenderManifest = {
  47. i18n: {
  48. locales: ['en-US', 'fr', 'nl-NL', 'nl-BE'],
  49. defaultLocale: 'en-US',
  50. },
  51. };
  52. export const sampleI18nManifest = {
  53. build: sampleI18nBuildManifest,
  54. preRender: sampleI18nPreRenderManifest,
  55. routes: sampleRenderManifest,
  56. };
  57. export const sampleNotFoundRoutesBuildManifest = {
  58. pages: {
  59. '/': [],
  60. '/about': [],
  61. '/only-nl': [],
  62. '/[dynamic]': [],
  63. '/_app': [],
  64. '/_error': [],
  65. },
  66. };
  67. export const sampleNotFoundRoutesPreRenderManifest = {
  68. routes: {
  69. '/en-US': {},
  70. '/fr': {},
  71. '/nl-NL': {},
  72. '/en-US/about': {},
  73. '/fr/about': {},
  74. '/nl-NL/about': {},
  75. '/en-US/only-nl': {},
  76. '/fr/only-nl': {},
  77. '/nl-NL/only-nl': {},
  78. '/en-US/page-0': {},
  79. '/fr/page-0': {},
  80. '/nl-NL/page-0': {},
  81. '/en-US/page-1': {},
  82. '/fr/page-1': {},
  83. '/nl-NL/page-1': {},
  84. },
  85. notFoundRoutes: [
  86. '/fr',
  87. '/nl-NL/about',
  88. '/en-US/only-nl',
  89. '/fr/only-nl',
  90. '/nl-NL/page-0',
  91. '/fr/page-1',
  92. '/nl-NL/page-1',
  93. ],
  94. };
  95. export const sampleNotFoundRoutesRenderManifest = {
  96. i18n: {
  97. locales: ['en-US', 'fr', 'nl-NL'],
  98. defaultLocale: 'en-US',
  99. },
  100. };
  101. export const sampleNotFoundRoutesManifest = {
  102. build: sampleNotFoundRoutesBuildManifest,
  103. preRender: sampleNotFoundRoutesPreRenderManifest,
  104. routes: sampleNotFoundRoutesRenderManifest,
  105. };