Skip to content

Commit

Permalink
Merge pull request #1059 from entur/cra-to-vite
Browse files Browse the repository at this point in the history
Migrate from CRA to vite
  • Loading branch information
testower authored Nov 4, 2024
2 parents 0925712 + 09686c8 commit 0849afe
Show file tree
Hide file tree
Showing 24 changed files with 4,901 additions and 25,945 deletions.
10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,10 @@ npm start

Note: This will launch the application with hot reload enabled.

Default port in development is _9000_. This can be overrided by setting the environment
variable `port` (notice lower case).
Default port in development is _9000_. This can be overridden by setting the environment
variable `PORT`.

To override timatBaseURL (GraphQL endpoint), set `TIAMAT_BASE_URL` as environment variables, e.g.

```
TIAMAT_BASE_URL=https://api.dev.entur.org/stop_places/1.0/graphql port=9000 NODE_ENV=development node server.js
```
To override timatBaseURL (GraphQL endpoint), set `VITE_REACT_APP_TIAMAT_BASE_URL` as environment variables.

### Testing

Expand Down
24 changes: 24 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="shortcut icon" href="/favicon.ico">
<title>Stoppestedsregister</title>
<link
rel="stylesheet"
href="//cdnjs.cloudflare.com/ajax/libs/leaflet/1.7.1/leaflet.css"
/>
<link
href="https://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet"
/>
</head>
<body>
<noscript>
You need to enable JavaScript to run this app.
</noscript>
<div id="root"></div>
<script type="module" src="/src/index.js"></script>
</body>
</html>
Loading

0 comments on commit 0849afe

Please sign in to comment.