Skip to content

Tougrel/tougrel.dev

Repository files navigation

tougrel.dev

Look at the Nuxt 3 documentation to learn more.

How to run locally

First you need to make sure you install the dependencies. I personally use pnpm for this, but you can use both npm and yarn if you want to!

pnpm install

Once everything is done installing you need to make a .env file with the following stuff inside:

# You can skip this in case you want to!
NITRO_PRESET=""

# In case you don't want to use cloudflare analytics you can remove
# this and the nuxt-cloudflare-analytics package from the project
CLOUDFLARE_ANALYTICS_TOKEN=""

Once you are done with the .env file you can go ahead and start the development server by running

pnpm run dev

To build and preview locally before pushing in production you can do it by using the below commands

# Build the project
pnpm run build

# Run the production build of the project
pnpm run preview

You can always check out the nuxt deployment documentation for more information!