Skip to content

Commit

Permalink
Merge pull request #23 from tminaorg/fixing-bun
Browse files Browse the repository at this point in the history
feat: Finally adressed cors error bug and other fixes
  • Loading branch information
aleksasiriski authored Nov 4, 2023
2 parents 82c92a2 + 0e87fbf commit 035a745
Show file tree
Hide file tree
Showing 14 changed files with 2,328 additions and 3,199 deletions.
3 changes: 2 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
PRIVATE_API_URL=http://localhost:3030 # server reachable
ORIGIN=http://localhost:5173 # this server
API_URL=http://localhost:3030 # server reachable
PUBLIC_API_URL=http://localhost:3030 # client reachable
9 changes: 6 additions & 3 deletions .github/workflows/dockerci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,15 @@ jobs:
steps:
- uses: actions/checkout@v4

# install deps (using npm until bun fixes bug for static assets)
# install deps (using pnpm until bun fixes bug for static assets)
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v4
with:
node-version: lts/*
cache: 'npm'
- run: npm ci
cache: 'pnpm'
- run: pnpm install

# build project
- uses: oven-sh/setup-bun@v1
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/dockerflycd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,15 @@ jobs:
steps:
- uses: actions/checkout@v4

# install deps (using npm until bun fixes bug for static assets)
# install deps (using pnpm until bun fixes bug for static assets)
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v4
with:
node-version: lts/*
cache: 'npm'
- run: npm ci
cache: 'pnpm'
- run: pnpm install

# build project
- uses: oven-sh/setup-bun@v1
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/testingci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,15 @@ jobs:
steps:
- uses: actions/checkout@v4

# install deps (using pnpm until bun fixes bug for static assets)
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v4
with:
node-version: lts/*
cache: 'npm'
- run: npm ci
cache: 'pnpm'
- run: pnpm install

- uses: oven-sh/setup-bun@v1
- run: bun run build
3 changes: 2 additions & 1 deletion fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ primary_region = "cdg"
image = "ghcr.io/tminaorg/prednjica:latest"

[env]
PRIVATE_API_URL = "http://zadnjica.internal:3030"
ORIGIN = "https://brzaguza.rs"
API_URL = "http://zadnjica.internal:3030"
PUBLIC_API_URL = "https://api.brzaguza.rs"

[http_service]
Expand Down
Loading

0 comments on commit 035a745

Please sign in to comment.