Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: vercel build issues #58

Merged
merged 5 commits into from
Apr 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions apps/website/.eslintrc

This file was deleted.

3 changes: 3 additions & 0 deletions apps/website/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "next/core-web-vitals"
}
40 changes: 32 additions & 8 deletions apps/website/.gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,35 @@
node_modules
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

.cache
.env
# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# local env files
.env*.local

# vercel
.vercel
.output
.turbo

/build/
/public/build
/api/index.js
# typescript
*.tsbuildinfo
42 changes: 21 additions & 21 deletions apps/website/README.md
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
# Welcome to Remix!
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).

- [Remix Docs](https://remix.run/docs)
## Getting Started

## Deployment
First, run the development server:

After having run the `create-remix` command and selected "Vercel" as a deployment target, you only need to [import your Git repository](https://vercel.com/new) into Vercel, and it will be deployed.
```bash
npm run dev
# or
yarn dev
```

If you'd like to avoid using a Git repository, you can also deploy the directory by running [Vercel CLI](https://vercel.com/cli):
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

```sh
npm i -g vercel
vercel
```
You can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file.

It is generally recommended to use a Git repository, because future commits will then automatically be deployed by Vercel, through its [Git Integration](https://vercel.com/docs/concepts/git).
[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.ts`.

## Development
The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.

To run your Remix app locally, make sure your project's local dependencies are installed:
## Learn More

```sh
npm install
```
To learn more about Next.js, take a look at the following resources:

Afterwards, start the Remix development server like so:
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.

```sh
npm run dev
```
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!

## Deploy on Vercel

Open up [http://localhost:3000](http://localhost:3000) and you should be ready to go!
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.

If you're used to using the `vercel dev` command provided by [Vercel CLI](https://vercel.com/cli) instead, you can also use that, but it's not needed.
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
7 changes: 0 additions & 7 deletions apps/website/api/index.js.map

This file was deleted.

4 changes: 0 additions & 4 deletions apps/website/app/entry.client.tsx

This file was deleted.

21 changes: 0 additions & 21 deletions apps/website/app/entry.server.tsx

This file was deleted.

37 changes: 0 additions & 37 deletions apps/website/app/root.tsx

This file was deleted.

32 changes: 0 additions & 32 deletions apps/website/app/routes/index.tsx

This file was deleted.

7 changes: 0 additions & 7 deletions apps/website/app/routes/install.mdx

This file was deleted.

Loading