diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 06eb2fbb..dad1d6a9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -110,7 +110,7 @@ jobs: frontend: image: ${{ github.repository }}:${{ github.sha }} env: - EDU_SHARING_API_URL: https://redaktion.openeduhub.net/edu-sharing/rest + EDU_SHARING_API_URL: https://repository.staging.openeduhub.net/edu-sharing/rest ports: - 8080:80 steps: diff --git a/Dockerfile b/Dockerfile index ed62770e..ed7a3781 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,6 @@ FROM nginx -COPY docker-entrypoint.d /docker-entrypoint.d +COPY docker-entrypoint.d /docker-entrypoint.d COPY nginx.page.conf /etc/nginx/conf.d/default.conf -COPY dist/oeh-search-frontend/ /usr/share/nginx/html/ \ No newline at end of file +COPY dist/oeh-search-frontend/browser/ /usr/share/nginx/html/ +COPY dist/oeh-search-frontend/3rdpartylicenses.txt /usr/share/nginx/html/3rdpartylicenses.txt diff --git a/nginx.page.conf b/nginx.page.conf index 04a28877..bcb58f5f 100644 --- a/nginx.page.conf +++ b/nginx.page.conf @@ -4,11 +4,11 @@ server { # Serve supported languages from the respective directories. location /en-US/ { - alias /usr/share/nginx/html/browser/en-US/; + alias /usr/share/nginx/html/en-US/; try_files $uri /en-US/index.html; } location /de/ { - alias /usr/share/nginx/html/browser/de/; + alias /usr/share/nginx/html/de/; try_files $uri /de/index.html; } diff --git a/src/proxy.conf.js b/src/proxy.conf.js index 782d6686..fd5fe960 100644 --- a/src/proxy.conf.js +++ b/src/proxy.conf.js @@ -3,7 +3,7 @@ require('dotenv').config(); const PROXY_CONFIG = {}; if (process.env.RELAY_PROXY_URL) { - // For some reason, the proxy doesn't forwarding the path with the request anymore. Therefore, + // For some reason, the proxy doesn't forward the path with the request anymore. Therefore, // we hard-code `/graphql` here for now. PROXY_CONFIG['/relay/graphql'] = { target: process.env.RELAY_PROXY_URL + '/graphql',