Skip to content

Commit

Permalink
chore!: remove worker host
Browse files Browse the repository at this point in the history
  • Loading branch information
yjl9903 committed Jun 11, 2024
1 parent 25e01fb commit 29e0737
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 1 addition & 6 deletions packages/app/astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ const APP_HOST = process.env.APP_HOST ?? `garden.onekuma.cn`;
const SERVER_HOST = process.env.SERVER_HOST;
const SERVER_PORT = process.env.SERVER_PORT;
const SERVER_PROTOCOL = process.env.SERVER_PROTOCOL ?? 'http'; // http or https
const WORKER_HOST = process.env.WORKER_HOST ?? `animegarden.yjl9903.workers.dev`;

console.log(`BUILD:`, SERVER_HOST, SERVER_PORT, SERVER_PROTOCOL);

Expand Down Expand Up @@ -122,11 +121,7 @@ export default defineConfig({
/**
* The protocal of server
*/
SERVER_PROTOCOL,
/**
* The host of Cloudflare Worker
*/
WORKER_HOST
SERVER_PROTOCOL
}
}),
Analytics({
Expand Down
2 changes: 0 additions & 2 deletions packages/app/src/env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,4 @@ declare module '~build/meta' {
export const SERVER_PORT: string | undefined;

export const SERVER_PROTOCOL: string | undefined;

export const WORKER_HOST: string;
}

0 comments on commit 29e0737

Please sign in to comment.