Skip to content

Commit

Permalink
just get rid of backend url
Browse files Browse the repository at this point in the history
  • Loading branch information
codekansas committed Aug 16, 2024
1 parent 6f247b5 commit 704de23
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 9 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,8 @@ jobs:
- name: Write .env.production
working-directory: frontend
env:
BACKEND_URL: ${{ env.BACKEND_URL }}
run: |
echo "VITE_APP_BACKEND_URL=${BACKEND_URL}" >> .env.production
echo "VITE_APP_BACKEND_URL=https://api.kscale.store" >> .env.production
- name: Build frontend
run: |
Expand Down
4 changes: 2 additions & 2 deletions frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<meta charset="UTF-8" />

<!-- SEO -->
<meta name="description" content="Buy and sell humanoid robots and robot parts online" />
<meta name="keywords" content="K-Scale Labs, Robot, Robots, Humanoid Robots, " />
<meta name="description" content="Buy, sell and build androids online" />
<meta name="keywords" content="K-Scale Labs, Robot, Robots, Humanoid Robots, Droids, Androids, " />

<!-- View options -->
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
Expand Down
1 change: 0 additions & 1 deletion frontend/src/constants/backend.ts

This file was deleted.

3 changes: 1 addition & 2 deletions frontend/src/constants/env.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export const BACKEND_URL =
import.meta.env.VITE_APP_BACKEND_URL || "http://127.0.0.1:8080";
export const BACKEND_URL = import.meta.env.VITE_APP_BACKEND_URL;
2 changes: 1 addition & 1 deletion frontend/src/pages/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const Home = () => {
<div className="relative mx-auto max-w-2xl mt-10 px-6 lg:px-16">
<h1 className="max-w-2xl mb-4 text-4xl font-extrabold leading-none tracking-tight md:text-5xl xl:text-6xl text-white">
Buy, sell and build
<br /> humanoid robots
<br /> droids
</h1>
<div className="flex gap-4 mx-auto mt-8 max-w-2xl lg:mx-0 lg:max-w-none">
<Button
Expand Down

0 comments on commit 704de23

Please sign in to comment.