let's see if this works
Some checks failed
Code quality checks / build (23) (push) Successful in 34s
Push code / build (push) Failing after 37s

This commit is contained in:
Lara 2024-11-02 16:17:41 +02:00
parent 88afb77abf
commit c2da2a8058
Signed by: laratheprotogen
GPG key ID: 5C0296EB3165F98B
5 changed files with 10 additions and 16 deletions

View file

@ -1,10 +1,11 @@
server {
listen 80;
server_name zappyzep.xyz;
listen 80 default_server;
server_name _;
# Using a variable here stops nginx from crashing if the dev container is restarted or becomes otherwise unavailable
set $backend_upstream "http://api:3001";
set $dashboard_upstream "http://dashboard:3002";
set $newdashboard_upstream "http://revampdashboard:3000";
location / {
# Using a variable in proxy_pass also requires resolver to be set.
@ -12,6 +13,11 @@ server {
resolver 127.0.0.11;
proxy_pass $dashboard_upstream$uri$is_args$args;
}
location /new {
resolver 127.0.0.11;
proxy_pass $newdashboard_upstream$uri$is_args$args;
}
location /api {
resolver 127.0.0.11;
@ -21,15 +27,3 @@ server {
client_max_body_size 200M;
}
}
server {
listen 80;
server_name new.zappyzep.xyz;
set $dashboard_upstream "http://revampdashboard:3000";
location / {
resolver 127.0.0.11;
proxy_pass $dashboard_upstream$uri$is_args$args;
}
}

View file

@ -1,6 +1,6 @@
import { expect, test } from "@playwright/test";
test("home page has expected h1", async ({ page }) => {
await page.goto("/");
await page.goto("/new");
await expect(page.locator("h1")).toBeVisible();
});

View file

@ -1,3 +1,3 @@
@import 'tailwindcss/base';
@import 'tailwindcss/components';
@import 'tailwindcss/utilities'
@import 'tailwindcss/utilities';