^14.17.0and Yarn at
yarnto install the dependencies.
dist/directory. Use the
--prodflag for a production build.
Running lint locally is slow and fill up heap memory. This is related to Typescript compilation and NX lint builder being slow. As a result you might get a
NODE_OPTIONS=“--max-old-space-size=4096” yarn lint <project>to raise the memory limit.
<!-- environment placeholder -->.
getStaticEnvfunction from the
@island.is/shared/utilslibrary to fetch your environment variables.
SI_PUBLIC_, for example
SI_PUBLIC_*in the code and tries to find a match in the environment. It then puts all the matches inside the index.html which is then served to the client.