Allow fetching from multiple sources
This commit is contained in:
48
readme.md
48
readme.md
@@ -2,28 +2,15 @@
|
||||
|
||||
```npm run start```
|
||||
|
||||
### Browser: Dev Frontend and Dev Backend (localhost)
|
||||
This option should be at the top level of capacitor.config.json
|
||||
"server": {
|
||||
"url": "http://sam.local:5173",
|
||||
"cleartext": true
|
||||
},
|
||||
## Install Native Tools
|
||||
|
||||
### Browser: Prod Frontend and Prod Backend
|
||||
Run:
|
||||
vite build
|
||||
npx serve dist
|
||||
|
||||
If you need to login again:
|
||||
run localStorage.clear() in the browser dev tools console and then refresh the page.
|
||||
|
||||
## Run On Device
|
||||
https://capacitorjs.com/docs/ios#adding-the-ios-platform
|
||||
|
||||
One-Time Install:
|
||||
npm install @capacitor/ios
|
||||
npx cap add ios
|
||||
|
||||
## Run On Device
|
||||
|
||||
To Open XCode:
|
||||
npx cap open ios
|
||||
|
||||
@@ -33,17 +20,40 @@ npm run build && npx cap copy ios
|
||||
If getting black screen:
|
||||
npx cap sync iOS
|
||||
|
||||
### iOS: Dev Frontend and Dev Backend (localhost)
|
||||
|
||||
## iOS:
|
||||
|
||||
### Browser: Dev Front and Dev Back (localhost)
|
||||
This option should be at the top level of capacitor.config.json
|
||||
"server": {
|
||||
"url": "http://sam.local:5173",
|
||||
"cleartext": true
|
||||
},
|
||||
|
||||
### iOS: Dev Frontend with Prod Backend (frm.so)
|
||||
### Browser: Prod Front and Prod Back
|
||||
Run:
|
||||
vite build
|
||||
npx serve dist
|
||||
|
||||
If you need to login again:
|
||||
run localStorage.clear() in the browser dev tools console and then refresh the page.
|
||||
|
||||
|
||||
|
||||
|
||||
## iOS:
|
||||
|
||||
### Dev Front, Dev Back (localhost)
|
||||
This option should be at the top level of capacitor.config.json
|
||||
"server": {
|
||||
"url": "http://sam.local:5173",
|
||||
"cleartext": true
|
||||
},
|
||||
|
||||
### Dev Front, Prod Back (frm.so)
|
||||
Add "https://frm.so" to VITE_API_URL in .env.development
|
||||
|
||||
### iOS: Prod Frontend and Prod Backend (frm.so)
|
||||
### Prod Front, Prod Back (frm.so)
|
||||
Remove the "server" object from capacitor.config.
|
||||
|
||||
### Various Commands
|
||||
|
||||
Reference in New Issue
Block a user