-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into refactor-k8s-hono-api
- Loading branch information
Showing
216 changed files
with
8,830 additions
and
2,385 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,38 @@ | ||
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). | ||
# Stadnamportalen | ||
Frontend and REST API for Språksamlingane's place name collections. | ||
|
||
## Getting Started | ||
Leaflet implementation based on [next-leaflet-starter](https://github.com/colbyfayock/next-leaflet-starter) | ||
|
||
First, run the development server: | ||
Data for elasticsearch: | ||
https://git.app.uib.no/spraksamlingane/stadnamn/datasett/stadnamn-archive | ||
|
||
|
||
IIIF-data: | ||
https://git.app.uib.no/spraksamlingane/stadnamn/iiif.spraksamlingane.no | ||
|
||
```bash | ||
npm run dev | ||
# or | ||
yarn dev | ||
# or | ||
pnpm dev | ||
# or | ||
bun dev | ||
``` | ||
|
||
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. | ||
|
||
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file. | ||
## Develop locally | ||
|
||
This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font. | ||
|
||
## Learn More | ||
|
||
To learn more about Next.js, take a look at the following resources: | ||
## Environment variables | ||
|
||
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. | ||
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. | ||
The following environment variables are used in the application: | ||
|
||
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! | ||
```bash | ||
SN_ENV=local | ||
#ES_ENDPOINT=https://search.ub.uib.no/ | ||
#ES_TOKEN= | ||
ES_ENDPOINT=https://search.testdu.uib.no/search/ # Comment out when testing fallback | ||
ES_TOKEN= | ||
ES_ENDPOINT_TEST=https://search.testdu.uib.no/search/ | ||
ES_TOKEN_TEST= | ||
|
||
``` | ||
Note that the test and production endpoints should be the same locally unless you are testing the fallback mechanism, | ||
as indices created for local development (without pushing changes and running the cicd pipeline in stadnamn-archive) will not be available in the production cluster. | ||
When SN_ENV is defined as prod in the vercel deployment, the test enpoint will serve as fallback. | ||
In preview deployments, the test endpoint will be used as the primary endpoint, while the production endpoint will serve as fallback. | ||
|
||
## Facets and fields | ||
|
||
* Search fields: fields that can be long or are nearly 1-1 for each entry, e. g. comments | ||
* Client facet/hierarchical facet: hierarchical facet that small enough to be handled client side - mainly administrative division | ||
* Server facet: Supports query patterns and one level of nesting |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
google-site-verification: googlee3b9c58a0a12d382.html |
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.