Without mime types,enabled Nginx services files as text/plain. This is not supported eg. in the Firefox does not load CSS files with wrong Content-Type header. This caused stopped to work GraphQL plugin.
Signed-off-by: Vity <vity@vity.cz>
The change to using @vscode/sqlite3 broke our deployment builds.
Adding the required build tool `g++` and linking `python` to the python3 executable.
```shell
make: Entering directory '/builds/.../node_modules/@vscode/sqlite3/build'
ACTION deps_sqlite3_gyp_action_before_build_target_unpack_sqlite_dep Release/obj/gen/sqlite-autoconf-3360000/sqlite3.c
/bin/sh: python: not found
```
Technically, the python path can be added to `.nmprc`, but added it to the docker file instead.
Signed-off-by: Andrew Basson <andrew.basson@gmail.com>
An interesting edge case has come up whilst using BackStage.
When using the example frontend-with-nginx work to run a separate
frontend, whilst then providing an override for the
googleAnalyticsTrackingId in yaml config via
APP_CONFIG_app_googleAnalyticsTrackingId. I received an "Octal escape
sequences are not allowed in strict mode" error in the browser dev
console.
After looking into it it appears that the sed used escapes the numbers 2
and 7 if they are present in an APP_CONFIG_* ENV override value.
I happened to have both a 2 and a 7 in my GA ids, hence the edge case
part!
Of note this did not happen on my mac but it is present inside of the
nginx:mainline Docker container used in the example.
This fix simply removes the hex from the sed substitution regex and
replaces it with a single quote '
Signed-off-by: Ben Chidgey <ben@feedmypixel.com>
This isn't the best fix because we're still using NODE_ENV=development
in a "production" environment. Ideally we would stop doing this.
Right now, the Helm charts are broken because they deploy the backend
straight into Error state.. This change will unbreak them for the
moment.
Add a Dockerfile which can be used to build an image that the helm
charts will use as default. These images require mkdocs and cookiecutter
to be installed (for now) in order to work around the docker requirement
in kubernetes.