Skip to content

Commit

Permalink
Tidy up uidevmode
Browse files Browse the repository at this point in the history
  • Loading branch information
johannbm committed Aug 30, 2023
1 parent f47c032 commit 193006d
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 346 deletions.
3 changes: 2 additions & 1 deletion apps/frackend/.dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
!tsconfig.json
!package*.json
!public/
!node_modules
!node_modules
!dev-server
42 changes: 0 additions & 42 deletions apps/frackend/publicLocal/index.html

This file was deleted.

3 changes: 0 additions & 3 deletions apps/frackend/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { setupActuators } from "./actuators.js";
import { setupNomApiProxy, setupTeamcatApiProxy } from "./apiProxy.js";
import { setupStaticRoutes } from "./frontendRoute.js";
import { setupSession } from "./session.js";
import setupUiDevelopmentEndpoint from "./uiDev.js";

// Create Express Server
const app = express();
Expand All @@ -18,8 +17,6 @@ setupSession(app);
setupNomApiProxy(app);
setupTeamcatApiProxy(app);

setupUiDevelopmentEndpoint(app);

// Catch all route, må være sist
setupStaticRoutes(app);

Expand Down
297 changes: 0 additions & 297 deletions apps/frackend/src/uiDev.ts

This file was deleted.

4 changes: 1 addition & 3 deletions apps/frontend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,5 @@ Dette vil starte en vite-devserver på port `5173`.

## UI-DEV modus
Istedenfor å starte opp frackend lokalt, kan man heller midlertidig hoste vite-devserver på deployet frackend:
1. Gå til `https://teamkatalog.dev.nav.no/uidev`
1. Gå til `https://teamkatalog.dev.nav.no/toggle-devserver`
2. Logg inn med trygdeetaten bruker
3. Sjekk `dev server portnumber on localhost` stemmer overens med porten til vite-devserver, og trykk upload
4. Trykk deretter på `HOME` for å gå tilbake til appen. Det skal nå vises en rød `UIDEV`-tag, og endringene i frontenden vil nå hotrelades.

0 comments on commit 193006d

Please sign in to comment.