Skip to content

Commit 4576d0e

Browse files
committed
errores infernales solucionados suprimiendo client:load duplicado
1 parent 39bce81 commit 4576d0e

File tree

5 files changed

+1300
-4468
lines changed

5 files changed

+1300
-4468
lines changed

astro.config.mjs

+13-6
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,23 @@
11
// @ts-check
22
import { defineConfig } from 'astro/config';
33
import svelte from '@astrojs/svelte';
4-
import vercelServerless from '@astrojs/vercel/serverless'; // https://github.com/withastro/astro/issues/4464
5-
import dotenv from 'dotenv';
4+
import vercel from '@astrojs/vercel';
65

6+
import dotenv from 'dotenv';
77
dotenv.config();
88

9+
// https://astro.build/config
910
export default defineConfig({
1011
integrations: [svelte()],
12+
1113
output: 'server',
12-
adapter: vercelServerless({
13-
imageService: true,
14-
}),
15-
});
14+
adapter: vercel(),
1615

16+
server: {
17+
// Server configuration
18+
headers: {
19+
// Cache control to prevent caching
20+
'Cache-Control': 'no-cache, no-store, must-revalidate',
21+
},
22+
},
23+
});

0 commit comments

Comments
 (0)