Skip to content

Commit

Permalink
fix: webpack public path
Browse files Browse the repository at this point in the history
  • Loading branch information
denchiklut committed Oct 13, 2024
1 parent 3d80ded commit 60938b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webpack/utils/env/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { workspaceRoot } from './env.utils'

export const IS_DEV = process.env.NODE_ENV === 'development'
export const IS_PROD = process.env.NODE_ENV === 'production'
export const PUBLIC_PATH = IS_DEV ? '/' : process.env.PUBLIC_PATH ?? '/'
export const PUBLIC_PATH = IS_DEV ? '/' : (process.env.CLIENT_PUBLIC_PATH ?? '/')
export const ROOT_DIR = workspaceRoot
export const SRC_DIR = join(ROOT_DIR, 'src')
export const DIST_DIR = join(ROOT_DIR, 'dist')

0 comments on commit 60938b4

Please sign in to comment.