Self-Hosted Server Specs? Running on a 4GB ram / ...
# developers
a
Self-Hosted Server Specs? Running on a 4GB ram / 2AMD vCPU DigitalOcean droplet and wow
yarn build
toasts my machine (takes > 30 minutes and counting). The part it seems to get stuck on is
Linting and checking validity of types ..
What specs are ya'll running? Am I doing something wrong? I am using node version 16
e
change
apps/web/next.config.js
Copy code
...
eslint: {    
    ignoreDuringBuilds: true
  },
  typescript: {
    ignoreBuildErrors: true
  }
...
your machine will still be cooked, but less so
i was getting away with a free 1-core, 1 GB RAM VPS for some time, but the app’s gotten too heavy — 20 GB disk got completely full with
node_modules
and other build output and the VPS slowed to a halt. upgraded to 2-core, 2 GB RAM VPS with 40 GB storage. build takes about 16 minutes on this machine when skipping linting and type-checking. it will normally fail if it tries to lint and type-check as the machine runs out of memory.
unfortunately, as far as i can tell, the build step is necessary. i’ve been thinking about finding a way to build on my own personal machine and then send the build output to the VPS. not sure if this is possible or advisable, though. i know many of the
.env
vars go into the static pages of the build, but i’m not sure if the database is queried during build.