Skip to content

Commit 53f8f4e

Browse files
authored
Merge pull request #98 from laravel/remove-direct-access-console-warning
Prevent console warning when Vite pings HMR
2 parents 8d2923b + 74271b9 commit 53f8f4e

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/index.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -184,12 +184,6 @@ function resolveLaravelPlugin(pluginConfig: Required<PluginConfig>): LaravelPlug
184184

185185
return () => server.middlewares.use((req, res, next) => {
186186
if (req.url === '/index.html') {
187-
server.config.logger.warn(
188-
"\n" + colors.bgYellow(
189-
colors.black(`The Vite server should not be accessed directly. Your Laravel application's configured APP_URL is: ${appUrl}`)
190-
)
191-
)
192-
193187
res.statusCode = 404
194188

195189
res.end(

0 commit comments

Comments
 (0)