mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-22 12:31:40 +00:00
fix(frontend): delete mock public directory only for production
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
7037c9f6ca
commit
dd4e50103f
1 changed files with 6 additions and 1 deletions
|
@ -42,7 +42,12 @@ cp -R .next/static dist/frontend/.next/static
|
|||
cp next.config.js dist/frontend/next.config.js
|
||||
cp -R public dist/frontend/public
|
||||
rm -f dist/frontend/.env
|
||||
rm -rf dist/frontend/public/public
|
||||
|
||||
if [ "${NODE_ENV}" = "production" ]; then
|
||||
echo "🦔 > Remove public directory because this is a production build"
|
||||
rm -rf dist/frontend/public/public
|
||||
fi
|
||||
|
||||
rm -rf dist/frontend/src
|
||||
|
||||
echo "🦔 > Done! You can run the build by going into the dist directory and executing \`node frontend/server.js\`"
|
||||
|
|
Loading…
Reference in a new issue