79246476

Date: 2024-12-03 06:31:37
Score: 3
Natty:
Report link

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

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): I'm facing the same issue
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Abrar