Fixed ui openapi.json bug. Reverted buildDir settings
All checks were successful
checks-impure / test (pull_request) Successful in 27s
checks / test (pull_request) Successful in 3m18s

This commit is contained in:
2024-01-23 12:17:29 +01:00
parent 6f4bab98c1
commit 2fb2a1d22a
3 changed files with 3 additions and 3 deletions

View File

@@ -58,7 +58,8 @@ jobs:
git commit -am "update ui-assets.nix" git commit -am "update ui-assets.nix"
echo "Current branch: $GITHUB_REF_NAME" echo "Current branch: $GITHUB_REF_NAME"
git push origin HEAD:$GITHUB_REF_NAME git push origin HEAD:"$GITHUB_REF_NAME"
echo "Done uploading"
fi fi
else else
echo "No UI files changed. Skipping asset build and push" echo "No UI files changed. Skipping asset build and push"

View File

@@ -2,7 +2,6 @@
const nextConfig = { const nextConfig = {
output: "export", output: "export",
images: { unoptimized: true }, images: { unoptimized: true },
distDir: "build",
eslint: { eslint: {
dirs: ["src"], dirs: ["src"],
}, },

View File

@@ -25,7 +25,7 @@ pkgs.mkShell {
export NEXT_BUILD_ID=$(git log -1 --pretty=format:"%H") export NEXT_BUILD_ID=$(git log -1 --pretty=format:"%H")
# re-generate the api code # re-generate the api code
rm -f openapi.json rm -f --interactive=never openapi.json
rm -rf src/api rm -rf src/api
cp ${clanPkgs.clan-openapi}/openapi.json . cp ${clanPkgs.clan-openapi}/openapi.json .
orval orval