This is a Next.js project bootstrapped with create-next-app.
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun devOpen 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.
This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.
/site hosts Glypho, a public masonry collage of images that users opt
into publishing via the "Add to Glypho" checkbox on the uploader (requires an
account; the upload is also saved to it).
To serve it on its own subdomain, point the subdomain at the same deployment and set:
NEXT_PUBLIC_GALLERY_HOST— hostname of the gallery (e.g.glypho.0016.cz). The middleware rewrites requests for this host to/site.NEXT_PUBLIC_GALLERY_URL— full URL of the gallery (e.g.https://glypho.0016.cz), used by the uploader to link to it.NEXT_PUBLIC_MAIN_SITE_URL— full URL of the main uploader (e.g.https://0016.cz), used by the gallery to link back.
Without these set, the gallery is still reachable at /site and links fall
back to relative paths.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.