diff --git a/.github/workflows/main_deploy.yaml b/.github/workflows/main_deploy.yaml index 3c60b6de4..f5cdd4c32 100644 --- a/.github/workflows/main_deploy.yaml +++ b/.github/workflows/main_deploy.yaml @@ -22,11 +22,9 @@ jobs: run: sudo apt-get update && sudo apt-get install nodejs -y - run: flutter pub get - name: Prepare web - run: | - ./scripts/prepare-web.sh - sed -i 's/href="\/"/href="\/web\/"/' web/index.html + run: ./scripts/prepare-web.sh - name: Build Release Web - run: flutter build web --release --verbose --source-maps + run: flutter build web --release --verbose --source-maps --base-href "/web/" - name: Build Website run: | cd docs && npx tailwindcss -o ./tailwind.css --minify && cd .. diff --git a/web/index.html b/web/index.html index 18cecab84..7ebfd6128 100644 --- a/web/index.html +++ b/web/index.html @@ -11,8 +11,11 @@ For more details: * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base + + This is a placeholder for base href that will be replaced by the value of + the `--base-href` argument provided to `flutter build`. --> - + @@ -30,80 +33,39 @@ FluffyChat - - - + + + + - if ('serviceWorker' in navigator) { - // Service workers are supported. Use them. - window.addEventListener('load', function () { - // Wait for registration to finish before dropping the - - - + +