Skip to content

Commit ebd7a02

Browse files
authored
Merge pull request #29 from hailwood/patch-2
Respect envDir when resolving assetUrl
2 parents accb5bd + edd7389 commit ebd7a02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export default function laravel(config: string|string[]|PluginConfig): LaravelPl
6363
enforce: 'post',
6464
config: (userConfig, { command, mode }) => {
6565
const ssr = !! userConfig.build?.ssr
66-
const env = loadEnv(mode, process.cwd(), '')
66+
const env = loadEnv(mode, userConfig.envDir || process.cwd(), '')
6767
const assetUrl = env.ASSET_URL ?? ''
6868

6969
return {

0 commit comments

Comments
 (0)