Skip to content

Mapetr/0016

Repository files navigation

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open 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.

Glypho — public gallery subdomain

/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.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

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.

About

Resources

Stars

Watchers

Forks

Contributors