Обновление конфигурации Astro: замена адаптера Vercel на Node с режимом "standalone" и добавление параметров сервера. Удаление зависимости от пакета @astrojs/vercel из package.json.

This commit is contained in:
Bivekich
2025-06-30 00:00:16 +03:00
parent 5a37ded261
commit f10036b674
7 changed files with 278 additions and 3 deletions

View File

@ -3,7 +3,7 @@ import tailwind from "@astrojs/tailwind";
import sanity from "@sanity/astro";
import react from "@astrojs/react";
import vercel from "@astrojs/vercel/serverless";
import node from "@astrojs/node";
// https://astro.build/config
export default defineConfig({
@ -16,5 +16,11 @@ export default defineConfig({
react(),
],
output: "server",
adapter: vercel(),
adapter: node({
mode: "standalone"
}),
server: {
host: true,
port: 4321
}
});