Skip to content

Commit

Permalink
Add host config for Astro
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanlee85 committed Feb 2, 2024
1 parent 8462cf5 commit 96cf5c8
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 25 deletions.
12 changes: 11 additions & 1 deletion examples/v7-astro/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
import { defineConfig } from 'astro/config';

import node from "@astrojs/node";

// https://astro.build/config
export default defineConfig({});
export default defineConfig({
output: 'server',
adapter: node({
mode: 'standalone',
}),
server: {
host: '0.0.0.0',
},
});
4 changes: 3 additions & 1 deletion examples/v7-astro/edgio.config.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// This file was automatically added by edgio init.
// You should commit this file to source control.
// Learn more about this file at https://docs.edg.io/guides/edgio_config
const { join } = require('path');

module.exports = {
connector: '@edgio/astro',

Expand All @@ -16,7 +18,7 @@ module.exports = {
astro: {
// The path of the standalone server that runs Astro SSR
// The dependencies for this file are automatically bundled
// appPath: join('dist', 'server', 'entry.mjs')
appPath: join('dist', 'server', 'entry.mjs'),
},

// When set to true or omitted entirely, Edgio includes the deployment number in the cache key,
Expand Down
41 changes: 18 additions & 23 deletions examples/v7-astro/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions examples/v7-astro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"version": "0.0.1",
"dependencies": {
"@astrojs/check": "^0.4.1",
"@astrojs/node": "^8.2.0",
"astro": "^4.3.1",
"typescript": "^5.3.3"
},
Expand Down

0 comments on commit 96cf5c8

Please sign in to comment.