Skip to content

Commit 3d41750

Browse files
committed
fix builds
1 parent 4b1f25f commit 3d41750

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "at-astro",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"private": false,
55
"description": "An Astro integration for the AT Protocol, implementing OAuth flow and publishing an authenticated client to fetch and mutate records.",
66
"keywords": [

src/integration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function createSessionPrefix(
7272
export function createConfig({ isDev, astroConfig, options }: CreateConfigOptions): AtAstroConfig {
7373
const siteURL = new URL(resolveSite(options?.site ?? astroConfig.site))
7474
const site = siteURL.origin
75-
if (!astroConfig.server.host) {
75+
if (isDev && !astroConfig.server.host) {
7676
throw new Error(
7777
"`localhost` is not permitted as the only host. Ensure you run `astro dev --host 127.0.0.1` " +
7878
"to expose the dev server on a non-localhost URL.",

0 commit comments

Comments
 (0)