-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
129 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# SPDX-License-Identifier: BSD-2-Clause | ||
# Copyright (c) 2020-2023, The Chancellor, Masters and Scholars of the University | ||
# of Oxford, and the 'Galv' Developers. All rights reserved. | ||
|
||
FROM cypress/base:20.9.0 | ||
|
||
RUN mkdir -p /app | ||
WORKDIR /app | ||
COPY . /app | ||
|
||
RUN rm -rf /app/node_modules /app/.pnpm-store | ||
|
||
RUN npm install -g pnpm | ||
|
||
RUN mv .env.vite .env | ||
|
||
RUN pnpm install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# fly.toml app configuration file generated for galv-frontend-dev on 2024-01-02T00:30:59Z | ||
# | ||
# See https://fly.io/docs/reference/configuration/ for information about how to use this file. | ||
# | ||
|
||
app = "galv-frontend-dev" | ||
primary_region = "lhr" | ||
|
||
[env] | ||
GALV_API_BASE_URL = "https://galv-backend-dev.fly.dev" | ||
|
||
[build] | ||
|
||
[build.args] | ||
GALV_API_BASE_URL = "https://galv-backend-dev.fly.dev" | ||
|
||
[http_service] | ||
internal_port = 80 | ||
force_https = true | ||
auto_stop_machines = true | ||
auto_start_machines = true | ||
min_machines_running = 0 | ||
processes = ["app"] | ||
|
||
[[vm]] | ||
cpu_kind = "shared" | ||
cpus = 1 | ||
memory_mb = 1024 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# SPDX-License-Identifier: BSD-2-Clause | ||
# Copyright (c) 2020-2023, The Chancellor, Masters and Scholars of the University | ||
# of Oxford, and the 'Galv' Developers. All rights reserved. | ||
|
||
error_log /var/log/nginx/error.log warn; | ||
|
||
server { | ||
listen 80; | ||
server_name localhost; | ||
|
||
client_max_body_size 100M; | ||
|
||
access_log /var/log/nginx/access.log main; | ||
error_log /var/log/nginx/error.log debug; | ||
|
||
location / { | ||
root /usr/share/nginx/html; | ||
index index.html index.htm; | ||
# Serve index for any route that doesn't have a file extension (e.g. /devices) | ||
# https://stackoverflow.com/a/45599233 | ||
try_files $uri $uri/ /index.html; | ||
} | ||
|
||
#error_page 404 /404.html; | ||
|
||
# redirect server error pages to the static page /50x.html | ||
error_page 500 502 503 504 /50x.html; | ||
location = /50x.html { | ||
root /usr/share/nginx/html; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { defineConfig } from 'vite' | ||
|
||
// https://vitejs.dev/config/ | ||
export default defineConfig({ | ||
build: { | ||
commonjsOptions: { transformMixedEsModules: true } // Change | ||
} | ||
}) |