Skip to content

Commit

Permalink
add OVERRIDE_URL
Browse files Browse the repository at this point in the history
  • Loading branch information
NexVeridian committed Jun 3, 2024
1 parent 3965a31 commit 1099217
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ POSTGRES_DB=url
# surrealdb
DB_USER=root
DB_PASSWORD=root
OVERRIDE_URL=s.nexv.dev
```

# License
Expand Down
2 changes: 1 addition & 1 deletion src/app/create/create.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default function CreateCard() {

const handleCopyUrl = () => {
if (state && state.url) {
const currentSiteName = window.location.hostname;
const currentSiteName = process.env.OVERRIDE_URL !== undefined ? process.env.OVERRIDE_URL : window.location.hostname;

let url = undefined;
if (currentSiteName === "localhost" || currentSiteName === "0.0.0.0") {
Expand Down

0 comments on commit 1099217

Please sign in to comment.