@byline/cli 6.13.0 → 6.13.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/LICENSE +5 -5
  2. package/dist/lib/template-docs-hooks.test.node.d.ts +2 -2
  3. package/dist/lib/template-docs-hooks.test.node.js +2 -2
  4. package/dist/lib/template-hook-boundary.test.node.js +2 -1
  5. package/dist/lib/template-hook-boundary.test.node.js.map +1 -1
  6. package/dist/lib/template-pages-preview.test.node.d.ts +2 -2
  7. package/dist/lib/template-pages-preview.test.node.js +2 -2
  8. package/dist/lib/template-path.d.ts.map +1 -1
  9. package/dist/lib/template-path.js +20 -1
  10. package/dist/lib/template-path.js.map +1 -1
  11. package/dist/lib/template-path.test.d.ts +9 -0
  12. package/dist/lib/template-path.test.d.ts.map +1 -0
  13. package/dist/lib/template-path.test.js +43 -0
  14. package/dist/lib/template-path.test.js.map +1 -0
  15. package/dist/manifest/deps.js +2 -2
  16. package/dist/manifest/deps.js.map +1 -1
  17. package/dist/phases/wire/index.d.ts.map +1 -1
  18. package/dist/phases/wire/index.js +17 -7
  19. package/dist/phases/wire/index.js.map +1 -1
  20. package/dist/phases/wire/start-ts.d.ts +2 -2
  21. package/dist/phases/wire/start-ts.js +2 -2
  22. package/dist/phases/wire/start-ts.test.d.ts +2 -2
  23. package/dist/phases/wire/start-ts.test.js +2 -2
  24. package/dist/phases/wire/vite-config-apply-error.test.d.ts +2 -0
  25. package/dist/phases/wire/vite-config-apply-error.test.d.ts.map +1 -0
  26. package/dist/phases/wire/vite-config-apply-error.test.js +47 -0
  27. package/dist/phases/wire/vite-config-apply-error.test.js.map +1 -0
  28. package/dist/phases/wire/vite-config-known-values.d.ts +28 -0
  29. package/dist/phases/wire/vite-config-known-values.d.ts.map +1 -0
  30. package/dist/phases/wire/vite-config-known-values.js +58 -0
  31. package/dist/phases/wire/vite-config-known-values.js.map +1 -0
  32. package/dist/phases/wire/vite-config-merge.d.ts +17 -0
  33. package/dist/phases/wire/vite-config-merge.d.ts.map +1 -1
  34. package/dist/phases/wire/vite-config-merge.js +169 -56
  35. package/dist/phases/wire/vite-config-merge.js.map +1 -1
  36. package/dist/phases/wire/vite-config-merge.test.js +149 -3
  37. package/dist/phases/wire/vite-config-merge.test.js.map +1 -1
  38. package/dist/phases/wire/vite-config.d.ts.map +1 -1
  39. package/dist/phases/wire/vite-config.js +64 -7
  40. package/dist/phases/wire/vite-config.js.map +1 -1
  41. package/dist/phases/wire/vite-config.test.js +110 -1
  42. package/dist/phases/wire/vite-config.test.js.map +1 -1
  43. package/dist/templates/byline/admin.config.ts +2 -2
  44. package/dist/templates/byline/collections/index.ts +2 -2
  45. package/dist/templates/byline/i18n.ts +2 -2
  46. package/dist/templates/byline/load-env.ts +2 -2
  47. package/dist/templates/byline/locales.ts +2 -2
  48. package/dist/templates/byline/public.ts +2 -2
  49. package/dist/templates/byline/routes.ts +2 -2
  50. package/dist/templates/byline/seed-admin.ts +2 -2
  51. package/dist/templates/byline/seeds/admin.ts +2 -2
  52. package/dist/templates/byline-examples/admin.config.ts +2 -2
  53. package/dist/templates/byline-examples/blocks/photo-block.ts +2 -2
  54. package/dist/templates/byline-examples/blocks/richtext-block.ts +2 -2
  55. package/dist/templates/byline-examples/collections/docs/admin.tsx +2 -2
  56. package/dist/templates/byline-examples/collections/docs/hooks.ts +2 -2
  57. package/dist/templates/byline-examples/collections/docs/index.ts +2 -2
  58. package/dist/templates/byline-examples/collections/docs/schema.ts +2 -2
  59. package/dist/templates/byline-examples/collections/index.ts +2 -2
  60. package/dist/templates/byline-examples/collections/media/admin.tsx +2 -2
  61. package/dist/templates/byline-examples/collections/media/components/media-list-view.tsx +2 -2
  62. package/dist/templates/byline-examples/collections/media/components/media-thumbnail.tsx +2 -2
  63. package/dist/templates/byline-examples/collections/media/index.ts +2 -2
  64. package/dist/templates/byline-examples/collections/media/schema.ts +2 -2
  65. package/dist/templates/byline-examples/collections/news/admin.tsx +2 -2
  66. package/dist/templates/byline-examples/collections/news/index.ts +2 -2
  67. package/dist/templates/byline-examples/collections/news/schema.ts +2 -2
  68. package/dist/templates/byline-examples/collections/news-categories/admin.tsx +2 -2
  69. package/dist/templates/byline-examples/collections/news-categories/index.ts +2 -2
  70. package/dist/templates/byline-examples/collections/news-categories/schema.ts +2 -2
  71. package/dist/templates/byline-examples/collections/pages/admin.tsx +2 -2
  72. package/dist/templates/byline-examples/collections/pages/index.ts +2 -2
  73. package/dist/templates/byline-examples/collections/pages/schema.ts +2 -2
  74. package/dist/templates/byline-examples/components/summary-length.tsx +2 -2
  75. package/dist/templates/byline-examples/fields/ai-text.ts +2 -2
  76. package/dist/templates/byline-examples/fields/ai-textarea.ts +2 -2
  77. package/dist/templates/byline-examples/fields/ai-widgets/ai-field-label.tsx +2 -2
  78. package/dist/templates/byline-examples/fields/ai-widgets/ai-field-panel.tsx +2 -2
  79. package/dist/templates/byline-examples/fields/ai-widgets/ai-panel-store.ts +2 -2
  80. package/dist/templates/byline-examples/fields/lexical-richtext-ai.tsx +2 -2
  81. package/dist/templates/byline-examples/fields/lexical-richtext-compact-admin.tsx +2 -2
  82. package/dist/templates/byline-examples/fields/lexical-richtext-compact.ts +2 -2
  83. package/dist/templates/byline-examples/fields/published-on-field.ts +2 -2
  84. package/dist/templates/byline-examples/i18n.ts +2 -2
  85. package/dist/templates/byline-examples/locales.ts +2 -2
  86. package/dist/templates/byline-examples/public.ts +2 -2
  87. package/dist/templates/byline-examples/routes.ts +2 -2
  88. package/dist/templates/byline-examples/scripts/import-docs.ts +2 -2
  89. package/dist/templates/byline-examples/scripts/lib/frontmatter.ts +2 -2
  90. package/dist/templates/byline-examples/scripts/lib/mdast-to-lexical.test.node.ts +2 -2
  91. package/dist/templates/byline-examples/scripts/lib/mdast-to-lexical.ts +2 -2
  92. package/dist/templates/byline-examples/scripts/lib/parse-markdown.ts +2 -2
  93. package/dist/templates/byline-examples/scripts/lib/rewrite-doc-links.ts +2 -2
  94. package/dist/templates/byline-examples/scripts/lib/strip-leading-h1.test.node.ts +2 -2
  95. package/dist/templates/byline-examples/scripts/lib/strip-leading-h1.ts +2 -2
  96. package/dist/templates/byline-examples/scripts/regenerate-media.ts +2 -2
  97. package/dist/templates/byline-examples/seed-docs.ts +2 -2
  98. package/dist/templates/byline-examples/seeds/docs.ts +2 -2
  99. package/dist/templates/byline-examples/seeds/news-categories.ts +2 -2
  100. package/dist/templates/byline-examples/seeds/site-settings.ts +2 -2
  101. package/dist/templates/byline-examples/singletons/site-settings/admin.ts +2 -2
  102. package/dist/templates/byline-examples/singletons/site-settings/index.ts +2 -2
  103. package/dist/templates/byline-examples/singletons/site-settings/schema.ts +2 -2
  104. package/dist/templates/dialects/mysql/byline/server.config.ts +2 -2
  105. package/dist/templates/dialects/mysql/byline-examples/server.config.ts +2 -2
  106. package/dist/templates/dialects/postgres/byline/server.config.ts +2 -2
  107. package/dist/templates/dialects/postgres/byline-examples/scripts/backfill-version-locales.ts +2 -2
  108. package/dist/templates/dialects/postgres/byline-examples/scripts/re-anchor.ts +2 -2
  109. package/dist/templates/dialects/postgres/byline-examples/server.config.ts +2 -2
  110. package/dist/templates/host/vite.config.ts +7 -1
  111. package/dist/templates/routes/_byline/admin/account/index.tsx +2 -2
  112. package/dist/templates/routes/_byline/admin/activity/index.tsx +2 -2
  113. package/dist/templates/routes/_byline/admin/collections/$collection/$id/api.tsx +2 -2
  114. package/dist/templates/routes/_byline/admin/collections/$collection/$id/history.tsx +2 -2
  115. package/dist/templates/routes/_byline/admin/collections/$collection/$id/index.tsx +2 -2
  116. package/dist/templates/routes/_byline/admin/collections/$collection/create.tsx +2 -2
  117. package/dist/templates/routes/_byline/admin/collections/$collection/index.tsx +2 -2
  118. package/dist/templates/routes/_byline/admin/index.tsx +2 -2
  119. package/dist/templates/routes/_byline/admin/permissions/index.tsx +2 -2
  120. package/dist/templates/routes/_byline/admin/roles/$id/index.tsx +2 -2
  121. package/dist/templates/routes/_byline/admin/roles/index.tsx +2 -2
  122. package/dist/templates/routes/_byline/admin/route.tsx +2 -2
  123. package/dist/templates/routes/_byline/admin/singletons/$singleton/history.tsx +2 -2
  124. package/dist/templates/routes/_byline/admin/singletons/$singleton/index.tsx +2 -2
  125. package/dist/templates/routes/_byline/admin/users/$id/index.tsx +2 -2
  126. package/dist/templates/routes/_byline/admin/users/index.tsx +2 -2
  127. package/dist/templates/routes/_byline/route.lazy.tsx +2 -2
  128. package/dist/templates/routes/_byline/route.tsx +2 -2
  129. package/dist/templates/routes/_byline/sign-in.tsx +2 -2
  130. package/dist/templates/ui-byline/components/responsive-image/index.tsx +2 -2
  131. package/dist/templates/ui-byline/components/richtext-lexical/serialize/types.ts +2 -2
  132. package/dist/templates-editor-api-drift.test.d.ts +2 -2
  133. package/dist/templates-editor-api-drift.test.js +2 -2
  134. package/package.json +2 -2
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This Source Code is subject to the terms of the Mozilla Public
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
3
  * License, v. 2.0. If a copy of the MPL was not distributed with this
4
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
5
  *
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This Source Code is subject to the terms of the Mozilla Public
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
3
  * License, v. 2.0. If a copy of the MPL was not distributed with this
4
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
5
  *
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This Source Code is subject to the terms of the Mozilla Public
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
3
  * License, v. 2.0. If a copy of the MPL was not distributed with this
4
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
5
  *
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This Source Code is subject to the terms of the Mozilla Public
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
3
  * License, v. 2.0. If a copy of the MPL was not distributed with this
4
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
5
  *
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This Source Code is subject to the terms of the Mozilla Public
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
3
  * License, v. 2.0. If a copy of the MPL was not distributed with this
4
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
5
  *
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This Source Code is subject to the terms of the Mozilla Public
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
3
  * License, v. 2.0. If a copy of the MPL was not distributed with this
4
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
5
  *
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This Source Code is subject to the terms of the Mozilla Public
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
3
  * License, v. 2.0. If a copy of the MPL was not distributed with this
4
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
5
  *
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This Source Code is subject to the terms of the Mozilla Public
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
3
  * License, v. 2.0. If a copy of the MPL was not distributed with this
4
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
5
  *
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This Source Code is subject to the terms of the Mozilla Public
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
3
  * License, v. 2.0. If a copy of the MPL was not distributed with this
4
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
5
  *
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This Source Code is subject to the terms of the Mozilla Public
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
3
  * License, v. 2.0. If a copy of the MPL was not distributed with this
4
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
5
  *
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This Source Code is subject to the terms of the Mozilla Public
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
3
  * License, v. 2.0. If a copy of the MPL was not distributed with this
4
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
5
  *
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This Source Code is subject to the terms of the Mozilla Public
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
3
  * License, v. 2.0. If a copy of the MPL was not distributed with this
4
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
5
  *
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This Source Code is subject to the terms of the Mozilla Public
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
3
  * License, v. 2.0. If a copy of the MPL was not distributed with this
4
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
5
  *
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This Source Code is subject to the terms of the Mozilla Public
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
3
  * License, v. 2.0. If a copy of the MPL was not distributed with this
4
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
5
  *
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This Source Code is subject to the terms of the Mozilla Public
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
3
  * License, v. 2.0. If a copy of the MPL was not distributed with this
4
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
5
  *
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This Source Code is subject to the terms of the Mozilla Public
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
3
  * License, v. 2.0. If a copy of the MPL was not distributed with this
4
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
5
  *
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This Source Code is subject to the terms of the Mozilla Public
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
3
  * License, v. 2.0. If a copy of the MPL was not distributed with this
4
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
5
  *
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This Source Code is subject to the terms of the Mozilla Public
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
3
  * License, v. 2.0. If a copy of the MPL was not distributed with this
4
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
5
  *
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
@@ -1,8 +1,8 @@
1
1
  import { walkToStatus } from './lib/walk-document-status.js'
2
2
  /**
3
- * This Source Code is subject to the terms of the Mozilla Public
3
+ * This Source Code Form is subject to the terms of the Mozilla Public
4
4
  * License, v. 2.0. If a copy of the MPL was not distributed with this
5
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
5
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
6
6
  *
7
7
  * Copyright (c) Infonomic Company Limited
8
8
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This Source Code is subject to the terms of the Mozilla Public
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
3
  * License, v. 2.0. If a copy of the MPL was not distributed with this
4
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
5
  *
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This Source Code is subject to the terms of the Mozilla Public
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
3
  * License, v. 2.0. If a copy of the MPL was not distributed with this
4
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
5
  *
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This Source Code is subject to the terms of the Mozilla Public
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
3
  * License, v. 2.0. If a copy of the MPL was not distributed with this
4
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
5
  *
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This Source Code is subject to the terms of the Mozilla Public
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
3
  * License, v. 2.0. If a copy of the MPL was not distributed with this
4
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
5
  *
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This Source Code is subject to the terms of the Mozilla Public
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
3
  * License, v. 2.0. If a copy of the MPL was not distributed with this
4
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
5
  *
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This Source Code is subject to the terms of the Mozilla Public
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
3
  * License, v. 2.0. If a copy of the MPL was not distributed with this
4
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
5
  *
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This Source Code is subject to the terms of the Mozilla Public
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
3
  * License, v. 2.0. If a copy of the MPL was not distributed with this
4
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
5
  *
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This Source Code is subject to the terms of the Mozilla Public
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
3
  * License, v. 2.0. If a copy of the MPL was not distributed with this
4
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
5
  *
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This Source Code is subject to the terms of the Mozilla Public
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
3
  * License, v. 2.0. If a copy of the MPL was not distributed with this
4
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
5
  *
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This Source Code is subject to the terms of the Mozilla Public
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
3
  * License, v. 2.0. If a copy of the MPL was not distributed with this
4
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
5
  *
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This Source Code is subject to the terms of the Mozilla Public
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
3
  * License, v. 2.0. If a copy of the MPL was not distributed with this
4
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
5
  *
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This Source Code is subject to the terms of the Mozilla Public
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
3
  * License, v. 2.0. If a copy of the MPL was not distributed with this
4
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
5
  *
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This Source Code is subject to the terms of the Mozilla Public
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
3
  * License, v. 2.0. If a copy of the MPL was not distributed with this
4
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
5
  *
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This Source Code is subject to the terms of the Mozilla Public
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
3
  * License, v. 2.0. If a copy of the MPL was not distributed with this
4
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
5
  *
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This Source Code is subject to the terms of the Mozilla Public
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
3
  * License, v. 2.0. If a copy of the MPL was not distributed with this
4
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
5
  *
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This Source Code is subject to the terms of the Mozilla Public
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
3
  * License, v. 2.0. If a copy of the MPL was not distributed with this
4
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
5
  *
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This Source Code is subject to the terms of the Mozilla Public
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
3
  * License, v. 2.0. If a copy of the MPL was not distributed with this
4
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
5
  *
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This Source Code is subject to the terms of the Mozilla Public
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
3
  * License, v. 2.0. If a copy of the MPL was not distributed with this
4
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
5
  *
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This Source Code is subject to the terms of the Mozilla Public
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
3
  * License, v. 2.0. If a copy of the MPL was not distributed with this
4
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
5
  *
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This Source Code is subject to the terms of the Mozilla Public
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
3
  * License, v. 2.0. If a copy of the MPL was not distributed with this
4
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
5
  *
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This Source Code is subject to the terms of the Mozilla Public
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
3
  * License, v. 2.0. If a copy of the MPL was not distributed with this
4
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
5
  *
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
@@ -1,5 +1,5 @@
1
1
  import { devtools } from '@tanstack/devtools-vite'
2
- import { bylineClientHookBoundary } from '@byline/host-tanstack-start/vite'
2
+ import { bylineClientHookBoundary, bylineNitroFeatures } from '@byline/host-tanstack-start/vite'
3
3
  import { tanstackStart } from '@tanstack/react-start/plugin/vite'
4
4
 
5
5
  import tailwindcss from '@tailwindcss/vite'
@@ -177,6 +177,12 @@ const config = defineConfig({
177
177
  devtools(),
178
178
  nitro({
179
179
  preset: 'node',
180
+ // Nitro 3 release candidates swap in srvx's FastResponse on Node, which
181
+ // turns every Response a server function throws into a 200 (Byline's
182
+ // sign-in and passkey functions throw 400/429/503). bylineNitroFeatures()
183
+ // disables it until a fixed srvx reaches Nitro — h3js/srvx#343. Pass any
184
+ // features of your own as its argument.
185
+ features: bylineNitroFeatures(),
180
186
  // @byline/ui, @byline/admin, and @byline/host-tanstack-start all
181
187
  // ship compiled JS that does `import './foo_module.css'`. Nitro
182
188
  // externalizes node_modules by default, which would send those
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This Source Code is subject to the terms of the Mozilla Public
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
3
  * License, v. 2.0. If a copy of the MPL was not distributed with this
4
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
5
  *
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This Source Code is subject to the terms of the Mozilla Public
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
3
  * License, v. 2.0. If a copy of the MPL was not distributed with this
4
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
5
  *
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This Source Code is subject to the terms of the Mozilla Public
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
3
  * License, v. 2.0. If a copy of the MPL was not distributed with this
4
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
5
  *
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This Source Code is subject to the terms of the Mozilla Public
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
3
  * License, v. 2.0. If a copy of the MPL was not distributed with this
4
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
5
  *
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This Source Code is subject to the terms of the Mozilla Public
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
3
  * License, v. 2.0. If a copy of the MPL was not distributed with this
4
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
5
  *
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This Source Code is subject to the terms of the Mozilla Public
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
3
  * License, v. 2.0. If a copy of the MPL was not distributed with this
4
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
5
  *
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This Source Code is subject to the terms of the Mozilla Public
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
3
  * License, v. 2.0. If a copy of the MPL was not distributed with this
4
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
5
  *
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This Source Code is subject to the terms of the Mozilla Public
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
3
  * License, v. 2.0. If a copy of the MPL was not distributed with this
4
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
5
  *
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This Source Code is subject to the terms of the Mozilla Public
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
3
  * License, v. 2.0. If a copy of the MPL was not distributed with this
4
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
5
  *
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This Source Code is subject to the terms of the Mozilla Public
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
3
  * License, v. 2.0. If a copy of the MPL was not distributed with this
4
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
5
  *
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This Source Code is subject to the terms of the Mozilla Public
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
3
  * License, v. 2.0. If a copy of the MPL was not distributed with this
4
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
5
  *
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This Source Code is subject to the terms of the Mozilla Public
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
3
  * License, v. 2.0. If a copy of the MPL was not distributed with this
4
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
5
  *
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * This Source Code is subject to the terms of the Mozilla Public
2
+ * This Source Code Form is subject to the terms of the Mozilla Public
3
3
  * License, v. 2.0. If a copy of the MPL was not distributed with this
4
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
5
5
  *
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */