Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions client/src/config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
export const ENV =
window.location.hostname === 'todo: change to prod domain'
export const ENV = window.location.hostname.includes('stage.')
? 'stage'
: window.location.hostname === 'todo: change to prod domain'
? 'prod'
: window.location.hostname.includes('todo: change to non prod matcher')
? 'stage'
: window.location.port === '4173'
? 'test'
: 'dev';
: window.location.port === '4173'
? 'test'
: 'dev';

export const getServerUrl = () => {
switch (ENV) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "create-react-spa-cloudflare",
"type": "module",
"version": "0.0.22",
"version": "0.0.23",
"description": "Starter package for a React SPA with Cloudflare Pages, Workers, and KV",
"bin": "./bin/cli.js",
"scripts": {
Expand Down