island.is
. It is managed by the Digital Iceland department inside the Ministry of Finance and Economic Affairs.^14.17.0
and Yarn at ^1.22.0
.yarn
to install the dependencies.brew install awscli
brew install jq
dist/
directory. Use the --prod
flag 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 aJavaScript heap out of memory
. NX is working on fixing this for an upcoming update. In the meantime you can doNODE_OPTIONS=“--max-old-space-size=4096” yarn lint <project>
to raise the memory limit.
~/.aws/credentials
file. You can find more instructions here.db
), you may need to edit your app environment or sequelize config to pass the proxy credentials.db:5432
, es:9200
, redis:6379
, xroad:80
. If you have docker running on theses ports or any others services you will need to stop them in order to run the proxies.<!-- environment placeholder -->
.getStaticEnv
function from the @island.is/shared/utils
library to fetch your environment variables.SI_PUBLIC_
, for example SI_PUBLIC_MY_VARIABLE
.getStaticEnv
in your environment.prod.ts
file.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.