From d77bba5854992eaf2ec0deb4f248f14e676b92b5 Mon Sep 17 00:00:00 2001 From: Drew Lyton Date: Mon, 13 Jan 2025 13:35:46 -0500 Subject: [PATCH] feat: change app folder to frontend --- README.md | 10 +++++----- frontend/.gitkeep | 0 package.json | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) create mode 100644 frontend/.gitkeep diff --git a/README.md b/README.md index 8e63420..b4fb3f7 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ A minimal scaffolding template for creating your own [Sanity](https://www.sanity ## Folder Structure ```plaintext -├── app/ # Your frontend application +├── frontend/ # Your frontend application ├── studio/ # Sanity Studio └── package.json # Root workspace configuration ``` @@ -25,14 +25,14 @@ npm install ``` ### Add a Frontend Framework -Install your preferred frontend framework. The command below installs a new Next.js project in the `app` directory. +Install your preferred frontend framework. The command below installs a new Next.js project in the `frontend` directory. ```bash -npx create-next-app@latest app +npx create-next-app@latest frontend ``` ### Customize Frontend Package -The app package is already defined as a workspace in the root `package.json`, but you may need to customize as needed. +The frontend package is already defined as a workspace in the root `package.json`, but you may need to customize as needed. ### Configure Environment Variables Create an `.env.example` file in your frontend directory with the following variables: @@ -76,7 +76,7 @@ You have the freedom to deploy your app to your hosting provider of choice. With 1. Create a GitHub repository from this project. Learn more. 2. Create a new Vercel project and connect it to your Github repository. -3. Set the Root Directory to your `app` directory. +3. Set the Root Directory to your `frontend` directory. 4. Configure your Environment Variables. ### Validate Template diff --git a/frontend/.gitkeep b/frontend/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/package.json b/package.json index 0008984..9d6d4cf 100644 --- a/package.json +++ b/package.json @@ -2,13 +2,13 @@ "name": "my-sanity-template", "scripts": { "dev": "npm-run-all --parallel dev:*", - "dev:app": "cd studio && npm run dev", + "dev:frontend": "cd frontend && npm run dev", "dev:studio": "cd studio && npm run dev", "deploy:studio": "cd studio && sanity deploy", "validate": "sanity-template-validate" }, "workspaces": [ - "app", + "frontend", "studio" ], "devDependencies": {