This is a api.shtl.ink frontend in Next.js The backend repository is here
- APP_NAME=the name of this application, usually just the baseurl
- COOKIE_DOMAIN=domain to share cookies, like ".shtl.ink" for *.shtl.ink, see supertokens docs
- API_BASE_URL=the url of an instance of api.shtl.ink
- BASE_URL=the base url of this app
make start-backend
make start-frontend
The images presently on hub.docker.com require the /etc/hosts
entry mentioned below if the api is running on the same host.
When running on docker create a file called .env.docker
and
pass it as a volume when creating the container like so
--volume $(pwd)/.env.docker:/opt/shtl_ink/.env.local
example in Makefile
.
make start-backend
make start-frontend-docker
There will need to be an entry in /etc/hosts
on the docker host like
127.0.0.1 localhost, api.shtl.ink
where api.shtl.ink
matches the
entry in this projects API_BASE_URL
(without the port) in the
.env.docker
or .env.local
file as well as the part of the argument before the
:
to the --add-host
flag under the start-frontend-docker
section of the Makefile
.