generated from Luis/nextjs-python-web-template
Fixed ui openapi.json bug. Reverted buildDir settings
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
@@ -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"],
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user