Next.js Discord

Discord Forum

Deploy a Next App to a Static Server. I'm a noob and I'm getting crazy. PLS HELP

Unanswered
Asiatic Lion posted this in #help-forum
Open in Discord
Asiatic LionOP
Hi everyone! I'm using the last Next version (13.4 if i'm not wrong) and, after finishing my website, the client decide to take his server and domain at aruba.it (My advice was digitalocean but he decided to do that, so...). Well aruba is usually used with Wordpress and work with classic FTP. I've found something online about using dotenv and ftp-deploy for the deploy of my app to this server but nothing is working... anyone did something similar in the past so can help me??? Pls T_T

16 Replies

@@ts-ignore https://nextjs.org/docs/pages/building-your-application/deploying/static-exports
Asiatic LionOP
Ty dude. I've figured out something but I've just discovered that My tailwind classes are not red... it's like all the styles are dissapeared... any clue?
module.exports = {
  mode: 'jit',
  content: [
    './pages/**/*.{js,ts,jsx,tsx,mdx}',
    './components/**/*.{js,ts,jsx,tsx,mdx}',
    './app/**/*.{js,ts,jsx,tsx,mdx}',
  ],
}
@Asiatic Lion Ty dude. I've figured out something but I've just discovered that My tailwind classes are not red... it's like all the styles are dissapeared... any clue?
I've never deployed anything static using tailwind but if it doesn't work then you might have to generate your css at build time and include in your project
@Asiatic Lion Ok... and how I do that? 😄
let me find the docs
btw try removing that jit
Asiatic LionOP
ty 🥲
@Asiatic Lion ty 🥲
npx tailwindcss -i ./src/styles/globals.css -o output.css --minify
this will pick up your tailwind config
and gen classes
Asiatic LionOP
so I just type this in terminal like a normal npm command?
but it's not working 😄
i wanna die 😄
Asiatic LionOP
Ok it kinda worked... but I'm having some probles with the images.... maybe because the server my client picked is too cheap and slow... lot of images are not displayed... not even all the video linked are displayed... in your experience do you think it can be just a server problem?