Astro 启动报错 address not Available

解决方法:

astro.config.mjs 修改 server.host 为 0.0.0.0

import { defineConfig } from "astro/config"
import mdx from "@astrojs/mdx"
import sitemap from "@astrojs/sitemap"
import tailwind from "@astrojs/tailwind"
 
// https://astro.build/config
export default defineConfig({
  site: "https://astrofy-template.netlify.app",
  integrations: [mdx(), sitemap(), tailwind()],
  server: {
    host: "0.0.0.0",
  },
})