Make marketing page static
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
/** @type {import('next').NextConfig} */
|
/** @type {import('next').NextConfig} */
|
||||||
const nextConfig = {};
|
const nextConfig = {
|
||||||
|
output: "export",
|
||||||
|
};
|
||||||
|
|
||||||
export default nextConfig;
|
export default nextConfig;
|
||||||
|
@@ -53,14 +53,14 @@ export function HeroImage() {
|
|||||||
viewport={{ once: true }}
|
viewport={{ once: true }}
|
||||||
className="p-3 bg-neutral-900 mt-24 rounded-xl mx-2"
|
className="p-3 bg-neutral-900 mt-24 rounded-xl mx-2"
|
||||||
>
|
>
|
||||||
<Image
|
{/* eslint-disable-next-line @next/next/no-img-element */}
|
||||||
|
<img
|
||||||
src="/app.webp"
|
src="/app.webp"
|
||||||
alt="App"
|
alt="App"
|
||||||
width={1200}
|
width={1200}
|
||||||
height={800}
|
height={800}
|
||||||
className="rounded-lg relative border"
|
className="rounded-lg relative border"
|
||||||
priority
|
/>
|
||||||
></Image>
|
|
||||||
</motion.div>
|
</motion.div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@@ -1,45 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
# Use this script to start a docker container for a local development database
|
|
||||||
|
|
||||||
# TO RUN ON WINDOWS:
|
|
||||||
# 1. Install WSL (Windows Subsystem for Linux) - https://learn.microsoft.com/en-us/windows/wsl/install
|
|
||||||
# 2. Install Docker Desktop for Windows - https://docs.docker.com/docker-for-windows/install/
|
|
||||||
# 3. Open WSL - `wsl`
|
|
||||||
# 4. Run this script - `./start-database.sh`
|
|
||||||
|
|
||||||
# On Linux and macOS you can run this script directly - `./start-database.sh`
|
|
||||||
|
|
||||||
DB_CONTAINER_NAME="web-postgres"
|
|
||||||
|
|
||||||
if ! [ -x "$(command -v docker)" ]; then
|
|
||||||
echo "Docker is not installed. Please install docker and try again.\nDocker install guide: https://docs.docker.com/engine/install/"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$(docker ps -q -f name=$DB_CONTAINER_NAME)" ]; then
|
|
||||||
docker start $DB_CONTAINER_NAME
|
|
||||||
echo "Database container started"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
# import env variables from .env
|
|
||||||
set -a
|
|
||||||
source .env
|
|
||||||
|
|
||||||
DB_PASSWORD=$(echo $DATABASE_URL | awk -F':' '{print $3}' | awk -F'@' '{print $1}')
|
|
||||||
|
|
||||||
if [ "$DB_PASSWORD" = "password" ]; then
|
|
||||||
echo "You are using the default database password"
|
|
||||||
read -p "Should we generate a random password for you? [y/N]: " -r REPLY
|
|
||||||
if ! [[ $REPLY =~ ^[Yy]$ ]]; then
|
|
||||||
echo "Please set a password in the .env file and try again"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
# Generate a random URL-safe password
|
|
||||||
DB_PASSWORD=$(openssl rand -base64 12 | tr '+/' '-_')
|
|
||||||
sed -i -e "s#:password@#:$DB_PASSWORD@#" .env
|
|
||||||
fi
|
|
||||||
|
|
||||||
docker run --name $DB_CONTAINER_NAME -e POSTGRES_PASSWORD=$DB_PASSWORD -e POSTGRES_DB=web -d -p 5432:5432 docker.io/postgres
|
|
||||||
|
|
||||||
echo "Database container was successfully created"
|
|
Reference in New Issue
Block a user