Switch to railway
This commit is contained in:
parent
85e7a8142c
commit
8139c9c54d
3 changed files with 6 additions and 3 deletions
2
.github/workflows/cypress.yml
vendored
2
.github/workflows/cypress.yml
vendored
|
@ -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
|
||||
|
|
2
.github/workflows/lint-deploy.yml
vendored
2
.github/workflows/lint-deploy.yml
vendored
|
@ -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
|
||||
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue