add faq
remove uneeded files extend sections
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
# alpha.42
|
||||
|
||||
**We're now pre-compiling CSS for faster startup times**
|
||||
|
||||
We are beginning to optimize the compilation and dev startup performance of Payload 3.0, and the first thing we've done is pre-compiled all SCSS that is required by the Payload admin UI.
|
||||
|
||||
If you started before `alpha.42` and update to this version, you'll see that no styles are loaded. To fix this, take a look at the `/src/app/(payload)/layout.tsx` file within this repo, and note that this file has a new CSS import within it to load all CSS required by the Payload admin panel.
|
||||
|
||||
Simply add this import to your `(payload)/layout.tsx` file, and you'll be back in business.
|
||||
|
||||
**We now load all required Payload static files from your Next.js `public` folder**
|
||||
|
||||
In addition to pre-compiling SCSS, we are also shipping static files through the Next.js `/public` folder which will cut down on compilation time as well. Make sure you copy the `public/payload` folder into your repo as well as add the CSS import above.
|
||||
7750
api/pnpm-lock.yaml
generated
7750
api/pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -1,28 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
DB_CONTAINER_NAME="next-payload-3"
|
||||
|
||||
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
|
||||
|
||||
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"
|
||||
fi
|
||||
|
||||
docker run --name $DB_CONTAINER_NAME -e POSTGRES_PASSWORD=$DB_PASSWORD -e POSTGRES_HOST_AUTH_METHOD=trust -e POSTGRES_DB=next-payload-3 -d -p 5432:5432 docker.io/postgres
|
||||
|
||||
echo "Database container was successfully created"
|
||||
|
||||
Reference in New Issue
Block a user