Registry viewer project for registry.devfile.io.
yarn nx postexport registry-viewer: exports the website's sitemap
For more information regarding NEXT_PUBLIC_* environment variables click here.
A few notes:
-
NEXT_PUBLIC_*environment variables are dynamic client side only -
Non
NEXT_PUBLIC_*environment variables are dynamic server side only -
If you need a dynamic environment variable server side and client side, you will need to pass the environment variable as a prop through
getStaticProps(). -
NEXT_PUBLIC_ANALYTICS_WRITE_KEY: The Segment analytics write key -
SITE_URL: The production url the site is hosted on (used to generate the sitemap) -
REVALIDATE_TOKEN: A secret token to allow only authorized users to revalidate pages on demand -
REVALIDATE_TIME: Amount in seconds after which a page re-generation can occur (this should be set to 86400, or 1 day in seconds, in production) -
DEVFILE_REGISTRIES: A JSON string array of the devfile registries to point the registry viewer atname: The name of the devfile registryurl: The url of the devfile registryfqdn(optional): The fqdn of the devfile registry in case the devfile registry is hosted locally (NOTE: local links will not work iffqdnis not set, i.e. links will be set to localhost instead of the correct url)- e.g.
DEVFILE_REGISTRIES=[{"name":"Community","url":"http://localhost:4200/","fqdn":"https://registry.stage.devfile.io"},{"name":"Devfile Registry","url":"https://registry.stage.devfile.io"}]