404 page, robots- and security.txt

This commit is contained in:
Martin Berg Alstad
2022-12-23 14:57:53 +01:00
parent 91efb8e14e
commit 79887d55ba
11 changed files with 93 additions and 3 deletions

26
build_extra.sh Normal file
View File

@ -0,0 +1,26 @@
#!/bin/sh
if [ ! -e dist ]; then
echo "dist directory not found, running 'vite bulid'"
vite build
fi
if [ -e robots.txt ]; then
cp robots.txt dist
else
echo "robots.txt not found"
fi
mkdir -p "dist/.well-known"
if [ -e "dist/.well-known" ]; then
if [ -e security.txt ]; then
cp security.txt dist/.well-known
else
echo "security.txt not found"
fi
fi
if [ -e .htaccess ]; then
cp .htaccess dist
fi