After completing the setup steps (it prompts for your project's name), run the following commands.
👇 These will gradually become more automated as this project progresses.
# Start DDEV
ddev start
# Install Craft
ddev craft install
# Install Vite plugin
ddev craft plugin/install vite
# Launch the site!
ddev launch
What you should see:
A styled page
Webfonts being loaded in the network tab.
A console log (and no errors)
ℹ️ You may need a ddev restart to get rid of 404s around webfonts. The Vite config is looking for the PRIMARY_SITE_URL environment variable. It might not be fully loaded by DDEV.
Overview
1
What this PR does.
What this PR (intentionally) doesn't do
How to test
Create a directory for your new Craft project
Run the following
composer create-project
command.It uses this branch as the starter project.
After completing the setup steps (it prompts for your project's name), run the following commands.
👇 These will gradually become more automated as this project progresses.
What you should see:
ℹ️ You may need a
ddev restart
to get rid of 404s around webfonts. The Vite config is looking for thePRIMARY_SITE_URL
environment variable. It might not be fully loaded by DDEV.