Baroshem / nuxt-security

🛡 Automatically configure your app to follow OWASP security patterns and principles by using HTTP Headers and Middleware
https://nuxt-security.vercel.app/
MIT License
815 stars 56 forks source link

Error "Builder returned invalid routes: should be string" when building on Vercel #66

Closed re2005 closed 1 year ago

re2005 commented 1 year ago

Build works fine, but when adding nuxt-security getting a build error.

Locally it works fine.

nuxt-security: 0.8.0 nuxt: 3.0.0

When building inside Vercel

Getting error:

Error: Builder returned invalid routes: should be string

Thanks for any idea of what I may be doing wrong.

Baroshem commented 1 year ago

Hey,

I cannot really say what can be causing it. routes can suggest that it has to do with routeRoules but not so sure.

Do you have more details? Maybe a file where it is failing or places in the code?

re2005 commented 1 year ago

Thanks @Baroshem for the quick response. I can share the complete log here, but I don't see anything that can give a better clue.

[10:16:29.302] Skipping build cache since Vercel CLI used --force option
[10:16:30.342] Cloning completed: 1.046s
[10:16:30.809] Running "vercel build"
[10:16:31.304] Vercel CLI 28.5.6
[10:16:31.918] Installing dependencies...
[10:16:36.058] npm WARN deprecated rollup-plugin-terser@7.0.2: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-terser
[10:16:36.137] npm WARN deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
[10:16:38.212] npm WARN deprecated async-cache@1.1.0: No longer maintained. Use [lru-cache](http://npm.im/lru-cache) version 7.6 or higher, and provide an asynchronous `fetchMethod` option.
[10:16:42.774] 
[10:16:42.774] > prepare
[10:16:42.774] > husky install
[10:16:42.774] 
[10:16:42.837] husky - Git hooks installed
[10:16:42.858] 
[10:16:42.859] added 902 packages in 11s
[10:16:42.859] 
[10:16:42.859] 139 packages are looking for funding
[10:16:42.859]   run `npm fund` for details
[10:16:42.893] Detected `package-lock.json` generated by npm 7+...
[10:16:42.893] Running "npm run build"
[10:16:43.187] 
[10:16:43.187] > build
[10:16:43.187] 
[10:16:43.263] [log] Nuxi 3.0.0
[10:16:43.274] [log] Nuxt 3.0.0 with Nitro 1.0.0
[10:16:44.202] [info] [nuxt:tailwindcss] Using default Tailwind CSS file from runtime/tailwind.css
[10:16:53.490] [info] Client built in 7936ms
[10:16:53.490] [info] Building server...
[10:16:58.540] [success] Server built in 5049ms
[10:16:58.649] [success] [nitro] Generated public .vercel/output/static
[10:16:58.661] [info] [nitro] Building Nitro Server (preset: `vercel`)
[10:17:10.436] [warn] Multiple major versions of package `ufo` are being externalized. Picking latest version:
[10:17:10.436] 
[10:17:10.437]   + /vercel/path0/node_modules/nitropack/node_modules/ufo@1.0.0
[10:17:10.437]   - /vercel/path0/node_modules/ufo@0.8.6
[10:17:10.693] [success] [nitro] Nitro server built
[10:17:11.141] [log] ├─ .vercel/output/functions/__nitro.func/package.json (1.35 kB) (557 B gzip)
[10:17:11.144] [log] ├─ .vercel/output/functions/__nitro.func/index.mjs (695 B) (338 B gzip)
[10:17:11.144] [log] ├─ .vercel/output/functions/__nitro.func/chunks/workable.mjs.map (552 B) (300 B gzip)
[10:17:11.144] [log] ├─ .vercel/output/functions/__nitro.func/chunks/workable.mjs (1.09 kB) (551 B gzip)
[10:17:11.145] [log] ├─ .vercel/output/functions/__nitro.func/chunks/subscribe.mjs.map (751 B) (360 B gzip)
[10:17:11.145] [log] ├─ .vercel/output/functions/__nitro.func/chunks/subscribe.mjs (1.24 kB) (620 B gzip)
[10:17:11.145] [log] ├─ .vercel/output/functions/__nitro.func/chunks/sitemap_routes.mjs.map (942 B) (407 B gzip)
[10:17:11.145] [log] ├─ .vercel/output/functions/__nitro.func/chunks/sitemap_routes.mjs (1.23 kB) (591 B gzip)
[10:17:11.145] [log] ├─ .vercel/output/functions/__nitro.func/chunks/rollup/_virtual_head-static.mjs.map (111 B) (112 B gzip)
[10:17:11.146] [log] ├─ .vercel/output/functions/__nitro.func/chunks/rollup/_virtual_head-static.mjs (882 B) (418 B gzip)
[10:17:11.146] [log] ├─ .vercel/output/functions/__nitro.func/chunks/nitro/vercel.mjs.map (73.8 kB) (11.5 kB gzip)
[10:17:11.146] [log] ├─ .vercel/output/functions/__nitro.func/chunks/nitro/vercel.mjs (59.1 kB) (15.5 kB gzip)
[10:17:11.146] [log] ├─ .vercel/output/functions/__nitro.func/chunks/handlers/renderer.mjs.map (19.9 kB) (3.45 kB gzip)
[10:17:11.146] [log] ├─ .vercel/output/functions/__nitro.func/chunks/handlers/renderer.mjs (16.2 kB) (5.02 kB gzip)
[10:17:11.146] [log] ├─ .vercel/output/functions/__nitro.func/chunks/error-500.mjs.map (1.04 kB) (370 B gzip)
[10:17:11.146] [log] ├─ .vercel/output/functions/__nitro.func/chunks/error-500.mjs (4.26 kB) (1.82 kB gzip)
[10:17:11.147] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/styles.mjs.map (1.76 kB) (383 B gzip)
[10:17:11.147] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/styles.mjs (2.57 kB) (629 B gzip)
[10:17:11.147] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/server.mjs.map (104 kB) (13.9 kB gzip)
[10:17:11.147] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/server.mjs (172 kB) (39.1 kB gzip)
[10:17:11.147] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/client.manifest.mjs.map (17.2 kB) (1.54 kB gzip)
[10:17:11.147] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/client.manifest.mjs (24.2 kB) (2.49 kB gzip)
[10:17:11.147] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/you-tube.56e0d6ad.mjs.map (2.87 kB) (930 B gzip)
[10:17:11.148] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/you-tube.56e0d6ad.mjs (4.26 kB) (1.59 kB gzip)
[10:17:11.148] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/you-tube-styles.375e4718.mjs.map (318 B) (210 B gzip)
[10:17:11.148] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/you-tube-styles.375e4718.mjs (441 B) (282 B gzip)
[10:17:11.149] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiVideoModal.7fada408.mjs.map (1.37 kB) (557 B gzip)
[10:17:11.149] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiVideoModal.7fada408.mjs (2.43 kB) (1.06 kB gzip)
[10:17:11.149] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiVideoModal-styles.e17fadf5.mjs.map (330 B) (217 B gzip)
[10:17:11.149] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiVideoModal-styles.e17fadf5.mjs (334 B) (209 B gzip)
[10:17:11.150] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiVideoGrid.24173b0b.mjs.map (1.46 kB) (575 B gzip)
[10:17:11.150] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiVideoGrid.24173b0b.mjs (2.48 kB) (1.06 kB gzip)
[10:17:11.150] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiUseCases.e7d568f9.mjs.map (8.95 kB) (2.21 kB gzip)
[10:17:11.150] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiUseCases.e7d568f9.mjs (11.7 kB) (3.55 kB gzip)
[10:17:11.150] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiUseCases-styles.c1f82c1e.mjs.map (325 B) (211 B gzip)
[10:17:11.151] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiUseCases-styles.c1f82c1e.mjs (1.58 kB) (539 B gzip)
[10:17:11.151] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiTextGrid.6a1f07e4.mjs.map (1.62 kB) (619 B gzip)
[10:17:11.151] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiTextGrid.6a1f07e4.mjs (2.56 kB) (1.08 kB gzip)
[10:17:11.151] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiTalkOnDiscord.e81afca8.mjs.map (1.42 kB) (533 B gzip)
[10:17:11.151] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiTalkOnDiscord.e81afca8.mjs (2.58 kB) (1.05 kB gzip)
[10:17:11.152] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiSupportedNetworks.47fedc9a.mjs.map (1.8 kB) (655 B gzip)
[10:17:11.152] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiSupportedNetworks.47fedc9a.mjs (3.45 kB) (1.45 kB gzip)
[10:17:11.152] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiStepper.c7c8893a.mjs.map (3.07 kB) (909 B gzip)
[10:17:11.152] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiStepper.c7c8893a.mjs (4.89 kB) (1.72 kB gzip)
[10:17:11.152] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiStepper-styles.8a3627c1.mjs.map (322 B) (211 B gzip)
[10:17:11.152] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiStepper-styles.8a3627c1.mjs (5.86 kB) (1.48 kB gzip)
[10:17:11.153] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiPartners.4e4f90c8.mjs.map (2.17 kB) (754 B gzip)
[10:17:11.153] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiPartners.4e4f90c8.mjs (3.26 kB) (1.4 kB gzip)
[10:17:11.154] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiOdometer.816be0d0.mjs.map (2.08 kB) (733 B gzip)
[10:17:11.154] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiOdometer.816be0d0.mjs (2.85 kB) (1.14 kB gzip)
[10:17:11.154] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiNavMobile-styles.c667d790.mjs.map (327 B) (218 B gzip)
[10:17:11.154] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiNavMobile-styles.c667d790.mjs (634 B) (351 B gzip)
[10:17:11.154] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiNavMenu-styles.4c6ae804.mjs.map (321 B) (213 B gzip)
[10:17:11.154] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiNavMenu-styles.4c6ae804.mjs (343 B) (223 B gzip)
[10:17:11.155] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiNavDropdown-styles.1019056f.mjs.map (334 B) (219 B gzip)
[10:17:11.155] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiNavDropdown-styles.1019056f.mjs (2.11 kB) (660 B gzip)
[10:17:11.157] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiHowRelayWorks.1a5ba1d0.mjs.map (6.84 kB) (1.21 kB gzip)
[10:17:11.157] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiHowRelayWorks.1a5ba1d0.mjs (12 kB) (2.49 kB gzip)
[10:17:11.157] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiHowRelayWorks-styles.42d9120d.mjs.map (340 B) (224 B gzip)
[10:17:11.157] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiHowRelayWorks-styles.42d9120d.mjs (919 B) (478 B gzip)
[10:17:11.157] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiHowGelatoWorks.0dc56517.mjs.map (5.55 kB) (1.17 kB gzip)
[10:17:11.157] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiHowGelatoWorks.0dc56517.mjs (6.66 kB) (2.09 kB gzip)
[10:17:11.157] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiHero.6e990d2b.mjs.map (2.42 kB) (769 B gzip)
[10:17:11.157] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiHero.6e990d2b.mjs (3.7 kB) (1.37 kB gzip)
[10:17:11.158] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiHero-styles.071dfd6c.mjs.map (313 B) (212 B gzip)
[10:17:11.158] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiHero-styles.071dfd6c.mjs (1.67 kB) (715 B gzip)
[10:17:11.158] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiHeader-styles.638d7b57.mjs.map (318 B) (214 B gzip)
[10:17:11.158] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiHeader-styles.638d7b57.mjs (539 B) (303 B gzip)
[10:17:11.158] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiGroupedList.06554be9.mjs.map (2.25 kB) (749 B gzip)
[10:17:11.158] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiGroupedList.06554be9.mjs (3.16 kB) (1.26 kB gzip)
[10:17:11.158] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiGetInTouch.5132e5b0.mjs.map (2.83 kB) (917 B gzip)
[10:17:11.158] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiGetInTouch.5132e5b0.mjs (5.16 kB) (2 kB gzip)
[10:17:11.158] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiFormInput.84171e7e.mjs.map (86.2 kB) (15 kB gzip)
[10:17:11.158] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiFormInput.84171e7e.mjs (71.2 kB) (15.8 kB gzip)
[10:17:11.158] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiFooter-styles.ff330f2c.mjs.map (319 B) (213 B gzip)
[10:17:11.159] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiFooter-styles.ff330f2c.mjs (986 B) (431 B gzip)
[10:17:11.159] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiCodeCollapse.433aafcf.mjs.map (2.48 kB) (848 B gzip)
[10:17:11.159] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiCodeCollapse.433aafcf.mjs (4.33 kB) (1.69 kB gzip)
[10:17:11.159] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiCodeCollapse-styles.16443831.mjs.map (336 B) (215 B gzip)
[10:17:11.159] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiCodeCollapse-styles.16443831.mjs (760 B) (421 B gzip)
[10:17:11.159] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiBrandAsset.68556eda.mjs.map (1.76 kB) (644 B gzip)
[10:17:11.159] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiBrandAsset.68556eda.mjs (1.95 kB) (875 B gzip)
[10:17:11.159] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiBlockImageText.6740d918.mjs.map (1.58 kB) (592 B gzip)
[10:17:11.159] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiBlockImageText.6740d918.mjs (1.87 kB) (837 B gzip)
[10:17:11.159] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiBlockImage.df385549.mjs.map (3.31 kB) (851 B gzip)
[10:17:11.159] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiBlockImage.df385549.mjs (5.79 kB) (1.57 kB gzip)
[10:17:11.159] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiBgVideo.4224d9f2.mjs.map (1.57 kB) (602 B gzip)
[10:17:11.160] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiBgVideo.4224d9f2.mjs (2.55 kB) (1.1 kB gzip)
[10:17:11.160] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiBgVideo-styles.87ac05fc.mjs.map (321 B) (216 B gzip)
[10:17:11.160] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/UiBgVideo-styles.87ac05fc.mjs (486 B) (308 B gzip)
[10:17:11.160] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/seo.295fcc80.mjs.map (2.15 kB) (567 B gzip)
[10:17:11.160] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/seo.295fcc80.mjs (1.76 kB) (519 B gzip)
[10:17:11.160] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/scrollTo.e8ffcf3e.mjs.map (1.43 kB) (542 B gzip)
[10:17:11.160] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/scrollTo.e8ffcf3e.mjs (1.1 kB) (528 B gzip)
[10:17:11.160] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/relay.91639831.mjs.map (6.49 kB) (1.59 kB gzip)
[10:17:11.160] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/relay.91639831.mjs (10.6 kB) (3.4 kB gzip)
[10:17:11.160] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/relay-styles.ed9c5afd.mjs.map (309 B) (207 B gzip)
[10:17:11.161] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/project.f9afc5ca.mjs.map (440 B) (249 B gzip)
[10:17:11.161] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/project.f9afc5ca.mjs (340 B) (207 B gzip)
[10:17:11.161] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/page-title.889e9a3d.mjs.map (1.37 kB) (537 B gzip)
[10:17:11.161] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/page-title.889e9a3d.mjs (1.46 kB) (727 B gzip)
[10:17:11.161] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/nuxt-picture.978ac7ab.mjs.map (6.48 kB) (1.48 kB gzip)
[10:17:11.161] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/nuxt-picture.978ac7ab.mjs (5.04 kB) (1.49 kB gzip)
[10:17:11.161] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/index.2ec533b4.mjs.map (5.73 kB) (1.48 kB gzip)
[10:17:11.161] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/index.2ec533b4.mjs (8.28 kB) (2.43 kB gzip)
[10:17:11.161] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/index-styles.d6a92bae.mjs.map (309 B) (208 B gzip)
[10:17:11.161] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/index-styles.d6a92bae.mjs (694 B) (363 B gzip)
[10:17:11.161] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/highlights-styles.47aa42de.mjs.map (325 B) (213 B gzip)
[10:17:11.161] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/highlights-styles.47aa42de.mjs (1.39 kB) (619 B gzip)
[10:17:11.161] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/error-component.3c681050.mjs.map (3.3 kB) (1.01 kB gzip)
[10:17:11.161] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/error-component.3c681050.mjs (4.49 kB) (1.56 kB gzip)
[10:17:11.161] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/divider.9cf7ff51.mjs.map (1.52 kB) (557 B gzip)
[10:17:11.162] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/divider.9cf7ff51.mjs (2.24 kB) (918 B gzip)
[10:17:11.162] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/developers.1bcfb664.mjs.map (6.12 kB) (1.37 kB gzip)
[10:17:11.162] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/developers.1bcfb664.mjs (10.2 kB) (2.75 kB gzip)
[10:17:11.162] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/developers-styles.637437ef.mjs.map (324 B) (208 B gzip)
[10:17:11.162] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/developers-styles.637437ef.mjs (718 B) (370 B gzip)
[10:17:11.162] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/content-box.d2c9d2e0.mjs.map (1.51 kB) (565 B gzip)
[10:17:11.162] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/content-box.d2c9d2e0.mjs (2.33 kB) (961 B gzip)
[10:17:11.162] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/content-box-styles.eaa34bd3.mjs.map (327 B) (208 B gzip)
[10:17:11.162] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/content-box-styles.eaa34bd3.mjs (331 B) (213 B gzip)
[10:17:11.162] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/ContactPage-styles.9ec6a3dc.mjs.map (327 B) (208 B gzip)
[10:17:11.162] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/ContactPage-styles.9ec6a3dc.mjs (510 B) (283 B gzip)
[10:17:11.162] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/contact.f5d7acbd.mjs.map (8.2 kB) (2.09 kB gzip)
[10:17:11.162] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/contact.f5d7acbd.mjs (10.5 kB) (3.4 kB gzip)
[10:17:11.162] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/components.107d10c3.mjs.map (1.48 kB) (567 B gzip)
[10:17:11.162] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/components.107d10c3.mjs (3.07 kB) (1.2 kB gzip)
[10:17:11.163] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/code-block.ab8c56d1.mjs.map (1.22 kB) (512 B gzip)
[10:17:11.163] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/code-block.ab8c56d1.mjs (2.06 kB) (875 B gzip)
[10:17:11.163] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/code-block-styles.6beb2f9f.mjs.map (324 B) (210 B gzip)
[10:17:11.163] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/code-block-styles.6beb2f9f.mjs (377 B) (251 B gzip)
[10:17:11.163] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/careers.2ac3a603.mjs.map (5.78 kB) (1.45 kB gzip)
[10:17:11.163] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/careers.2ac3a603.mjs (9.36 kB) (3.23 kB gzip)
[10:17:11.164] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/careers-styles.5fa98d5b.mjs.map (315 B) (209 B gzip)
[10:17:11.164] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/careers-styles.5fa98d5b.mjs (374 B) (231 B gzip)
[10:17:11.164] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/buttons.70ddaa69.mjs.map (1.85 kB) (695 B gzip)
[10:17:11.164] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/buttons.70ddaa69.mjs (2.8 kB) (1.14 kB gzip)
[10:17:11.164] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/brand-assets.6d77ec9b.mjs.map (4.9 kB) (934 B gzip)
[10:17:11.164] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/brand-assets.6d77ec9b.mjs (7.63 kB) (2.03 kB gzip)
[10:17:11.164] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/box-list.9c3b0b73.mjs.map (1.63 kB) (597 B gzip)
[10:17:11.164] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/box-list.9c3b0b73.mjs (1.71 kB) (760 B gzip)
[10:17:11.164] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/automate.a3150afe.mjs.map (8.35 kB) (1.72 kB gzip)
[10:17:11.164] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/automate.a3150afe.mjs (12.8 kB) (3.26 kB gzip)
[10:17:11.164] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/automate-styles.15d4eee2.mjs.map (318 B) (209 B gzip)
[10:17:11.164] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/automate-styles.15d4eee2.mjs (710 B) (366 B gzip)
[10:17:11.164] [log] ├─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/_slug_.6f5682b0.mjs.map (4.32 kB) (1.26 kB gzip)
[10:17:11.165] [log] └─ .vercel/output/functions/__nitro.func/chunks/app/_nuxt/_slug_.6f5682b0.mjs (5.18 kB) (1.91 kB gzip)
[10:17:11.165] [log] Σ Total size: 4.62 MB (1.14 MB gzip)
[10:17:11.401] Build Completed in /vercel/output [40s]
[10:17:12.626] Error: Builder returned invalid routes: should be string
Baroshem commented 1 year ago

Damn, you are right. Useful errors right? 😂

Can you try to build the project locally with the preset Vercel?

re2005 commented 1 year ago

Build locally with Vercel CLI/Preset Vercel and all looking good. Start to think that something else is the issue, probably nothing wrong with this module.

Will setup a clean Nuxt3 install and run it on Vercel.

Thanks for now, will share the findings here.

Cheers.

Baroshem commented 1 year ago

Ok, keep me posted so that I can help 🙂

re2005 commented 1 year ago

Small update, I've tried using it on another repo also on Vercel and had the same issue. Maybe is the combination of this module and Vercel, or I'm still missing something.

Baroshem commented 1 year ago

Hmm, difficult to say, does it occur if you disable the routeRoules? Or if you try to disable the server middlewares?

I would guess that it can be related to routeRoules but this is really strange

Also, do you use any configuration or is it a simple plain project with no configuration?

Baroshem commented 1 year ago

@danielroe any news on this?

Baroshem commented 1 year ago

Hey hey, the functionality was merged that fixes this issue. I will reopen the issue and close it once you confirm that it fixed an issue for you. I am also going to release a new version of the module quite soon.

Baroshem commented 1 year ago

I guess it works. If not, make sure to reopen the issue