This repo contains source code for the polyhaven.com site.
Poly Haven is a public project, we'd be happy to review any code contributions :) Please use the dev
branch for any PRs.
If you want to help but are unsure what to do, here's a list of things that need doing.
The site is a hybrid SPA built with Next.js.
To build the application yourself, you'll need to:
- Install Node
- Clone this repo
- Run
npm install
- Then
npm run dev
will start a local server at http://localhost:3002/ - or usenext dev -p 3002
to specify a different port.
If you'd like to help us out developing this site, please use the dev
branch!
This application works in tandem with our API.
By default it uses the public https://api.polyhaven.com base URL, but if you need to override this you can set an environment variable NEXT_PUBLIC_API_URL="http://localhost:3000"
.
However, unless you set up your own Firestore database that mimicks ours, you likely don't want to run a local API and should just use the default live one instead.
Need help building the site? The best way to get in touch is on Discord: https://discord.gg/Dms7Mrs
Otherwise you're welcome to create an issue, email us, whatever :)
Vercel sponsors the hosting of polyhaven.com's front-end.