Open XenBG opened 1 year ago
After I run npm run build, I get that output in the terminal:
npm run build
> nuxt build Nuxi 3.0.1-rc.0-27828744.aa9aec1 17:48:12 Nuxt 3.0.1-rc.0-27828744.aa9aec1 with Nitro 1.0.0-27809308.dc3383b 17:48:12 WARN 17:48:18 (!) Some chunks are larger than 500 KiB after minification. Consider: - Using dynamic import() to code-split the application - Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/guide/en/#outputmanualchunks - Adjust chunk size limit for this warning via build.chunkSizeWarningLimit. ℹ Client built in 4289ms 17:48:18 ℹ Building server... 17:48:18 ✔ Server built in 1855ms 17:48:20 ✔ Generated public .output/public nitro 17:48:20 ℹ Building Nitro Server (preset: node-server) nitro 17:48:20 WARN Multiple major versions of package is-https are being externalized. Picking latest version: 17:48:22 + /var/www/html/nuxt-app/node_modules/is-https@4.0.0 - /var/www/html/nuxt-app/node_modules/@funken-studio/sitemap-nuxt-3/node_modules/is-https@2.0.2 ✔ Nitro server built nitro 17:48:22 ├─ .output/server/package.json (1.54 kB) (573 B gzip) 17:48:22 ├─ .output/server/index.mjs (725 B) (328 B gzip) 17:48:22 ├─ .output/server/chunks/sitemap.mjs.map (1.32 kB) (515 B gzip) 17:48:22 ├─ .output/server/chunks/sitemap.mjs (908 B) (458 B gzip) 17:48:22 ├─ .output/server/chunks/rollup/_virtual_head-static.mjs.map (111 B) (112 B gzip) 17:48:22 ├─ .output/server/chunks/rollup/_virtual_head-static.mjs (301 B) (217 B gzip) 17:48:22 ├─ .output/server/chunks/nitro/node-server.mjs.map (108 kB) (7.6 kB gzip) 17:48:22 ├─ .output/server/chunks/nitro/node-server.mjs (42.8 kB) (11.7 kB gzip) 17:48:22 ├─ .output/server/chunks/handlers/renderer.mjs.map (20.2 kB) (3.52 kB gzip) 17:48:22 ├─ .output/server/chunks/handlers/renderer.mjs (16.4 kB) (5.02 kB gzip) 17:48:22 ├─ .output/server/chunks/error-500.mjs.map (1.07 kB) (392 B gzip) 17:48:22 ├─ .output/server/chunks/error-500.mjs (4.26 kB) (1.82 kB gzip) 17:48:22 ├─ .output/server/chunks/app/styles.mjs.map (322 B) (224 B gzip) 17:48:22 ├─ .output/server/chunks/app/styles.mjs (219 B) (183 B gzip) 17:48:22 ├─ .output/server/chunks/app/server.mjs.map (226 kB) (31.2 kB gzip) 17:48:22 ├─ .output/server/chunks/app/server.mjs (202 kB) (43.2 kB gzip) 17:48:22 ├─ .output/server/chunks/app/client.manifest.mjs.map (3.35 kB) (616 B gzip) 17:48:22 ├─ .output/server/chunks/app/client.manifest.mjs (4.29 kB) (779 B gzip) 17:48:22 ├─ .output/server/chunks/app/_nuxt/no-image.e23d5192.mjs.map (259 B) (206 B gzip) 17:48:22 ├─ .output/server/chunks/app/_nuxt/no-image.e23d5192.mjs (153 B) (147 B gzip) 17:48:22 ├─ .output/server/chunks/app/_nuxt/island-renderer.68b64e63.mjs.map (1.26 kB) (548 B gzip) 17:48:22 ├─ .output/server/chunks/app/_nuxt/island-renderer.68b64e63.mjs (1.84 kB) (820 B gzip) 17:48:22 ├─ .output/server/chunks/app/_nuxt/index.9f3cb61e.mjs.map (1.05 kB) (477 B gzip) 17:48:22 ├─ .output/server/chunks/app/_nuxt/index.9f3cb61e.mjs (1.85 kB) (842 B gzip) 17:48:22 ├─ .output/server/chunks/app/_nuxt/index.673b27d6.mjs.map (2.41 kB) (842 B gzip) 17:48:22 ├─ .output/server/chunks/app/_nuxt/index.673b27d6.mjs (3.67 kB) (1.35 kB gzip) 17:48:22 ├─ .output/server/chunks/app/_nuxt/error-component.29c8be92.mjs.map (2.83 kB) (907 B gzip) 17:48:22 ├─ .output/server/chunks/app/_nuxt/error-component.29c8be92.mjs (3.48 kB) (1.19 kB gzip) 17:48:22 ├─ .output/server/chunks/app/_nuxt/en.77713c51.mjs.map (9.06 kB) (994 B gzip) 17:48:22 ├─ .output/server/chunks/app/_nuxt/en.77713c51.mjs (8.43 kB) (1.31 kB gzip) 17:48:22 ├─ .output/server/chunks/app/_nuxt/CategoryApplications.20bac9e6.mjs.map (17.5 kB) (3.3 kB gzip) 17:48:22 ├─ .output/server/chunks/app/_nuxt/CategoryApplications.20bac9e6.mjs (16 kB) (3.54 kB gzip) 17:48:22 ├─ .output/server/chunks/app/_nuxt/asyncData.647dc689.mjs.map (4.67 kB) (1.26 kB gzip) 17:48:22 ├─ .output/server/chunks/app/_nuxt/asyncData.647dc689.mjs (3.72 kB) (1.21 kB gzip) 17:48:22 ├─ .output/server/chunks/app/_nuxt/app-styles.45a41a53.mjs.map (2.97 kB) (606 B gzip) 17:48:22 ├─ .output/server/chunks/app/_nuxt/app-styles.45a41a53.mjs (79.5 kB) (17.2 kB gzip) 17:48:22 ├─ .output/server/chunks/app/_nuxt/_slug_.d0e25d22.mjs.map (5.33 kB) (1.44 kB gzip) 17:48:22 ├─ .output/server/chunks/app/_nuxt/_slug_.d0e25d22.mjs (6.54 kB) (1.95 kB gzip) 17:48:22 ├─ .output/server/chunks/app/_nuxt/_slug_.b2edb615.mjs.map (3.51 kB) (1.06 kB gzip) 17:48:22 ├─ .output/server/chunks/app/_nuxt/_slug_.b2edb615.mjs (4.51 kB) (1.5 kB gzip) 17:48:22 ├─ .output/server/chunks/app/_nuxt/_slug_.8315abbd.mjs.map (6.86 kB) (1.67 kB gzip) 17:48:22 └─ .output/server/chunks/app/_nuxt/_slug_.8315abbd.mjs (8.4 kB) (2.41 kB gzip) 17:48:22 Σ Total size: 6.06 MB (1.55 MB gzip) 17:48:22 ✔ You can preview this build using node .output/server/index.mjs nitro 17:48:22 ℹ Generating sitemaps 17:48:22 ✔ Generated /.output/public/sitemap.xml 17:48:22
Also, the sitemap.xml file contains that:
sitemap.xml
<?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1"> <url> <loc>http://localhost:3000/</loc> <lastmod>2022-12-13T15:48:12.960Z</lastmod> <changefreq>daily</changefreq> <priority>1.0</priority> </url> </urlset>
My question is how to make it work to fetch all the pages in my Nuxt application, and run all the API endpoints I use in these pages?
@d3xter-dev Is there a way to hook into Nuxt/Nitro generated routes list (crawler list)?
After I run
npm run build
, I get that output in the terminal:Also, the
sitemap.xml
file contains that:My question is how to make it work to fetch all the pages in my Nuxt application, and run all the API endpoints I use in these pages?