Which files should be deployed to remote web svr

I am using next, yarn, and yarn build without any issue.

But where the produced file?

Which of them should deployed on remote web server, I am using nginx, on linux.

it should b a deploy folder somewhere, where an index.html file should be found.

There is no this kind of build , folder.



how do you build it, with what command?

yarn build

my package.json like below:

  "name": "moralis-dashboard3",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "dev": "next dev",
    "build": "next build",
    "start": "next start",
    "lint": "next lint"
  "dependencies": {
    "@chakra-ui/react": "^1.8.8",
    "@emotion/react": "^11",
    "@emotion/styled": "^11",
    "@walletconnect/web3-provider": "^1.7.7",
    "@web3auth/web3auth": "^0.9.0",
    "framer-motion": "^6",
    "magic-sdk": "7.0.0",
    "moralis": "^1.5.9",
    "next": "12.1.5",
    "react": "18.0.0",
    "react-dom": "18.0.0",
    "react-moralis": "^1.3.5"
  "devDependencies": {
    "eslint": "8.13.0",
    "eslint-config-next": "12.1.5"

and next.config.js like below

/** @type {import('next').NextConfig} */
const nextConfig = {
  reactStrictMode: true,

module.exports = nextConfig



I’m not familia with next, I would expect it to create a folder with the build data, look on all those folders that are there: public, pages, .next

1 Like

Yes, I am search and learn… thanks for being with me.

1 Like

The .next folder is what comes from your build command so that is what you deploy.