From c2f4dd44e37fcd5f3af42b359af0f65095be9cbd Mon Sep 17 00:00:00 2001 From: JuanM04 Date: Thu, 31 Mar 2022 15:14:04 -0300 Subject: [PATCH] Removed extra code --- packages/integrations/vercel/src/index.ts | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/packages/integrations/vercel/src/index.ts b/packages/integrations/vercel/src/index.ts index 3521dfc8d..e1433bb9d 100644 --- a/packages/integrations/vercel/src/index.ts +++ b/packages/integrations/vercel/src/index.ts @@ -35,10 +35,6 @@ export default function vercel(): AstroIntegration { 'astro:build:done': async ({ dir, routes }) => { const pagesDir = new URL('./server/pages/', dir); - // FIX: Remove these two line before merging - await fs.mkdir(pagesDir, { recursive: true }); - await fs.rename(new URL(`./${ENTRYFILE}.mjs`, dir), new URL(`./${ENTRYFILE}.mjs`, pagesDir)); - await esbuild.build({ entryPoints: [fileURLToPath(new URL(`./${ENTRYFILE}.mjs`, pagesDir))], outfile: fileURLToPath(new URL(`./${ENTRYFILE}.js`, pagesDir)), @@ -56,14 +52,6 @@ export default function vercel(): AstroIntegration { version: 3, basePath: '/', pages404: false, - // redirects: [ - // { - // source: '/nice/', - // destination: '/stuff', - // statusCode: 308, - // regex: '^/nice.*$', - // }, - // ], rewrites: routes.map((route) => ({ source: route.pathname, destination: `/${ENTRYFILE}`,