Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

kylym1631's avatar

net::ERR_CONNECTION_REFUSED

I am getting these messages after deploying laravel. What am I doing wrong? I ran npm run build on hosting.

GET http://[::1]:5173/@vite/client net::ERR_CONNECTION_REFUSED
resume:14         
GET http://[::1]:5173/resources/css/app.css net::ERR_CONNECTION_REFUSED
resume:14          
GET http://[::1]:5173/resources/js/app.js net::ERR_CONNECTION_REFUSED

My vite.config.js file

import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';

export default defineConfig({
    plugins: [
        laravel({
            input: [
                'resources/css/app.css',
                'resources/js/app.js',
            ],
            refresh: true,
        }),
    ],

});
0 likes
3 replies

Please or to participate in this conversation.