system There's another community post with 404 debugging tips that might be helpful. Please give these solutions a try and let us know how it goes. https://community.vercel.com/t/debugging-404-errors/437 A human should be around soon to offer more advice. But you can also get helpful information quickly by asking v0.
Amy Egan Did you try the debugging tips linked above? I'd recommend checking the build settings and output to figure out why the page is missing
Pauline P. Narvas Hi, @azziefuzzie! Welcome to the Vercel Community. It looks like the issue comes from how Eleventy and Vite are handling their output directories. Right now, you have a mismatch: * Eleventy outputs to `_site` * Vite outputs to `.11ty-vite` This conflict prevents Vercel from picking up the correct build output. Try updating your Eleventy config so that Vite builds to the same directory as Eleventy: ```js _eleventyConfig_.addPlugin(EleventyVitePlugin, { tempFolderName: tempFolder, viteOptions: { root: "src", publicDir: "public", build: { outDir: path.resolve(process.cwd(), "_site"), // Match Eleventy output emptyOutDir: false, // Prevents Eleventy files from being deleted rollupOptions: { input: {}, }, }, }, }); ``` If that doesn't work, try removing the custom `outDir` from your config and let `EleventyVitePlugin` handle it automatically.
Azziefuzzie Thanks, @pawlean I tried both solutions also tried removing the with removing the “outDir: path.resolve(process.cwd(), '\_site')”, couldn’t get it to work though still the same error : import path from 'path'; import fs from 'fs'; import htmlmin from 'html-minifier'; import EleventyVitePlugin from '@11ty/eleventy-plugin-vite'; import pluginPug from '@11ty/eleventy-plugin-pug'; export default function (*eleventyConfig*) { // --- Ensure temp folder exists --- const tempFolder = '.11ty-vite'; if (!*fs*.existsSync(tempFolder)) *fs*.mkdirSync(tempFolder, { recursive: true }); // --- Server --- *eleventyConfig*.setServerOptions({ port: 3000 }); // --- Plugins --- *eleventyConfig*.addPlugin(pluginPug); *eleventyConfig*.addPlugin(EleventyVitePlugin, { tempFolderName: tempFolder, viteOptions: { root: 'src', publicDir: 'public', build: { outDir: path.resolve(process.cwd(), '\_site'), emptyOutDir: false, rollupOptions: { input: {}, }, }, css: { preprocessorOptions: { scss: { additionalData: \`@import "@styles/utils/variables.scss";\`, }, }, }, resolve: { alias: { '@styles': path.resolve(process.cwd(), 'src/styles'), '@app': path.resolve(process.cwd(), 'src/app'), '@utils': path.resolve(process.cwd(), 'src/app/utils'), '@components': path.resolve(process.cwd(), 'src/app/components'), '@shaders': path.resolve(process.cwd(), 'src/app/shaders'), '@classes': path.resolve(process.cwd(), 'src/app/classes'), '@animations': path.resolve(process.cwd(), 'src/app/animations'), '@pages': path.resolve(process.cwd(), 'src/app/pages'), }, }, }, }); // --- Passthrough copy --- *eleventyConfig*.addPassthroughCopy('public'); *eleventyConfig*.addPassthroughCopy('src/app'); *eleventyConfig*.addPassthroughCopy('src/fonts'); *eleventyConfig*.addPassthroughCopy('src/styles'); *eleventyConfig*.setServerPassthroughCopyBehavior('copy'); // --- HTML minify --- *eleventyConfig*.addTransform('htmlmin', (*content*, *outputPath*) => { if (*outputPath* && *outputPath*.endsWith('.html')) { return htmlmin.minify(*content*, { useShortDoctype: true, removeComments: true, collapseWhitespace: true, }); } return *content*; }); // --- Return directory config --- return { dir: { input: 'src/views/', output: '\_site', includes: '\_includes', data: '\_data', }, passthroughFileCopy: true, htmlTemplateEngine: 'pug', }; };
system Hi @azziefuzzie! 🔔 This thread's been quiet for a while. If you're still facing issues, please share any relevant details (logs, screenshots, error messages) so we can take another look!