I think Suddenly I'm facing the same issue again
import { reactRouter } from "@react-router/dev/vite";
import autoprefixer from "autoprefixer";
import tailwindcss from "tailwindcss";
import { defineConfig } from "vite";
import tsconfigPaths from "vite-tsconfig-paths";
export default defineConfig({
resolve:{alias:{'@':'/src'}},//this is the extra line I added
css: {
postcss: {
plugins: [tailwindcss, autoprefixer],
},
},
plugins: [reactRouter(), tsconfigPaths()],
server:{//and this is extra section I added
host: true,
port: 8001,
}
});
when I run the docker run image_id it gives
> start
> react-router-serve ./build/server/index.js
[react-router-serve] http://localhost:3000 (http://172.17.0.2:3000)
but when I go to localhost:3000, Page can't be reach, why