Skip to content

Commit

Permalink
Merge pull request #22 from hailwood/main
Browse files Browse the repository at this point in the history
Use Vite's envDir option if specified
  • Loading branch information
jessarcher authored Jun 22, 2022
2 parents 07d7b9b + 0de2b05 commit d4fc875
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ export default function laravel(config: string|string[]|PluginConfig): LaravelPl
viteDevServerUrl = `${protocol}://${host}:${address.port}`
fs.writeFileSync(hotFile, viteDevServerUrl)

const appUrl = loadEnv('', process.cwd(), 'APP_URL').APP_URL
const envDir = resolvedConfig.envDir || process.cwd()
const appUrl = loadEnv('', envDir, 'APP_URL').APP_URL

setTimeout(() => {
server.config.logger.info(colors.red(`\n Laravel ${laravelVersion()} `))
Expand Down

0 comments on commit d4fc875

Please sign in to comment.