Switch to railway

This commit is contained in:
Jeremie Pardou-Piquemal 2022-10-24 23:16:48 +02:00 committed by Jérémie Pardou-Piquemal
parent 85e7a8142c
commit 8139c9c54d
3 changed files with 6 additions and 3 deletions

View file

@ -29,7 +29,7 @@ jobs:
VITE_CI: 1
VITE_SOCKET_URL: https://public.jeremiez.net/
VITE_SOCKET_PATH: /wamp/socket.io
VITE_API_ENDPOINT: https://ricochetjs.onrender.com
VITE_API_ENDPOINT: https://ricochetjs-deploy-production.up.railway.app/
VITE_RICOCHET_SITEID: airboardgame
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
- uses: actions/upload-artifact@v1

View file

@ -38,7 +38,7 @@ jobs:
CYPRESS_INSTALL_BINARY: 0
- run: |
cat <<EOF > ./dist/_redirects
/api/* https://ricochetjs.onrender.com/:splat 200
/api/* https://ricochetjs-deploy-production.up.railway.app/:splat 200
/* /index.html 200
EOF

View file

@ -1,6 +1,9 @@
import path from "path";
import { merge } from "webpack-merge";
import common from "./webpack.common.js";
import { fileURLToPath } from "url";
const dirname = path.dirname(fileURLToPath(import.meta.url));
export default merge(common, {
mode: "development",
@ -8,7 +11,7 @@ export default merge(common, {
ignored: ["node_modules/**"],
},
devServer: {
contentBase: path.join(__dirname, "dist"),
contentBase: path.join(dirname, "dist"),
compress: true,
port: 9000,
},