-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- fixed nodemon restart on .env - fixed basename
- Loading branch information
1 parent
52ccd16
commit 6f4d6b1
Showing
13 changed files
with
65 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,18 @@ | ||
import type { Env } from "src/common" | ||
|
||
declare global { | ||
declare const IS_DEV: boolean | ||
declare const IS_PROD: boolean | ||
declare const IS_SERVER: boolean | ||
declare const IS_SPA: boolean | ||
declare const clientPrefix: string | ||
declare var IS_DEV: boolean | ||
declare var IS_PROD: boolean | ||
declare var IS_SERVER: boolean | ||
declare var IS_SPA: boolean | ||
declare var clientPrefix: string | ||
|
||
namespace NodeJS { | ||
interface ProcessEnv extends Partial<Collection<keyof Env, string>> {} | ||
} | ||
|
||
interface Window { | ||
IS_SPA: boolean | ||
IS_SERVER: boolean | ||
IS_DEV: boolean | ||
IS_PROD: boolean | ||
|
||
env_vars: Partial<Collection<keyof Env, string>> | ||
clientPrefix: string | ||
nonce: string | ||
env_vars: Partial<Collection<keyof Env, string>> | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"watch": ["dist/server", ".env"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import 'dotenv/config' | ||
|
||
export function safeUrl() { | ||
try { | ||
return new URL(process.env.CLIENT_HOST ?? 'http://localhost:3000') | ||
} catch (err) { | ||
return new URL('http://localhost:3000') | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export * from './env' | ||
export * from './devServer' | ||
export * from './dev-server' | ||
export * from './optimization' |
2 changes: 1 addition & 1 deletion
2
webpack/utils/optimization.ts → webpack/utils/optimization/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters