Skip to content

Commit

Permalink
feat: Add seriesTitle information and editing (TT-1509)
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusLevang committed Jul 31, 2024
1 parent e111bb1 commit 113942b
Show file tree
Hide file tree
Showing 16 changed files with 653 additions and 92 deletions.
3 changes: 2 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
NEXT_PUBLIC_BASE_PATH=/hugin
CATALOGUE_API_PATH=http://localhost:8087/bikube
CATALOGUE_API_PATH=http://localhost:8087/bikube
DATABASE_URL=''
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ For å kjøre lokalt må du sette de nødvendige miljøvariablene:
cp .env.example .env.local
```

| Variabelnavn | Standardverdi | Beskrivelse |
|--------------------|------------------------------|----------------------------------------------------------------------------------------------------------------------|
| BASE_PATH | /hugin | Base path for applikasjonen |
| CATALOGUE_API_PATH | http://localhost:8087/bikube | Sti til [katalog APIet ](https://github.com/NationalLibraryOfNorway/bikube)<br/>Må starte med http:// eller https:// |

| Variabelnavn | Standardverdi | Beskrivelse |
|-----------------------|------------------------------|-------------------------------------------------------------------------------------------------------------------------------|
| NEXT_PUBLIC_BASE_PATH | /hugin | Base path for applikasjonen |
| CATALOGUE_API_PATH | http://localhost:8087/bikube | Sti til [katalog APIet ](https://github.com/NationalLibraryOfNorway/bikube)<br/>Må starte med `http://` eller `https://` |
| DATABASE_URL | '' | URL til databasen (inkludert brukernavn, passord og schema. eks `postgres://username:password@localhost:5432/db?schema=hugin` |

Deretter kan du kjøre følgende kommandoer:
```bash
npm install
npm run dev
```
Applikasjonen finner du nå i nettleseren på [http://localhost:3000/hugin](http://localhost:3000/hugin).
Applikasjonen finner du nå i nettleseren på [http://localhost:3000/hugin](http://localhost:3000/hugin).
4 changes: 2 additions & 2 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const nextConfig = {
async rewrites() {
return [
{
source: `${process.env.NEXT_PUBLIC_BASE_PATH}/api/:path*`,
source: `${process.env.NEXT_PUBLIC_BASE_PATH}/api/catalog/:path*`,
destination: `${process.env.CATALOGUE_API_PATH}/:path*`,
basePath: false
},
Expand All @@ -28,4 +28,4 @@ export default withSentryConfig(nextConfig, {
transpileClientSDK: true,
hideSourceMaps: true,
disableLogger: true
});
});
Loading

0 comments on commit 113942b

Please sign in to comment.