mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-03-16 12:33:45 +00:00
Migrate from create react app to vite
This commit is contained in:
10
README.md
10
README.md
@@ -96,7 +96,7 @@ cd topola-viewer
|
||||
npm install
|
||||
npm run build
|
||||
```
|
||||
Now, take the contents of the `build/` folder and host it on your own server.
|
||||
Now, take the contents of the `dist/` folder and host it on your own server.
|
||||
|
||||
### Use an existing package
|
||||
|
||||
@@ -107,18 +107,18 @@ These are the exact files that are hosted on GitHub pages.
|
||||
|
||||
### Build for your own data only
|
||||
|
||||
You can run Topola Viewer in a "single tree mode" that displays only the GEDCOM you specify. Specify the URL to a GEDCOM file in the `REACT_APP_STATIC_URL` environment variable when building and running the application.
|
||||
You can run Topola Viewer in a "single tree mode" that displays only the GEDCOM you specify. Specify the URL to a GEDCOM file in the `VITE_STATIC_URL` environment variable when building and running the application.
|
||||
|
||||
Run locally with the specified data URL:
|
||||
```
|
||||
REACT_APP_STATIC_URL=https://example.org/sample.ged npm start
|
||||
VITE_STATIC_URL=https://example.org/sample.ged npm start
|
||||
```
|
||||
|
||||
Build with the specified data URL:
|
||||
```
|
||||
REACT_APP_STATIC_URL=https://example.org/sample.ged npm run build
|
||||
VITE_STATIC_URL=https://example.org/sample.ged npm run build
|
||||
```
|
||||
The `build/` folder will contain files that can be hosted on a Web server.
|
||||
The `dist/` folder will contain files that can be hosted on a Web server.
|
||||
|
||||
### Alternative build
|
||||
|
||||
|
||||
Reference in New Issue
Block a user