Обновление конфигурации Astro: замена адаптера Vercel на Node с режимом "standalone" и добавление параметров сервера. Удаление зависимости от пакета @astrojs/vercel из package.json.
This commit is contained in:
@ -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
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user