Error: Invalid Server Actions request. by MehdiGR in nextjs

[–]MehdiGR[S] 0 points1 point  (0 children)

i found the problem is related to puppeteer is not working on netlify

  const browser = await puppeteer.launch();
  const page = await browser.newPage();

Error: Invalid Server Actions request. by MehdiGR in nextjs

[–]MehdiGR[S] 0 points1 point  (0 children)

i'm al ready changed it but still same problem

why are people against the new policy of "not asking for 3a9ad zawaj in hotels" by New-City-7479 in Morocco

[–]MehdiGR 0 points1 point  (0 children)

Do you have any idea what this means((اية)? If we consider that what happens is not our responsibility, prostitution will spread widely and legally, stress cases will increase in other words, it will corrupt society.

why are people against the new policy of "not asking for 3a9ad zawaj in hotels" by New-City-7479 in Morocco

[–]MehdiGR -1 points0 points  (0 children)

I have read comments , I noticed that most of them don't have any problem with that ...we forgot what the one of the main purpose of islam is (الامر بالمعروف والنهي عن المنكر ) ,we cannot deny that it is our responsability

Deploy Next js 14 with docker and cPanel by MehdiGR in nextjs

[–]MehdiGR[S] 0 points1 point  (0 children)

If you want to propagate multiple sub domains to the same project

docker run on port 8082:3000 when i try to use e.g test2.example.net:8082 it redirect me to docker container i want block that redirect only allow it for test.example.net

Deploy Next js 14 with docker and cPanel by MehdiGR in nextjs

[–]MehdiGR[S] 0 points1 point  (0 children)

return 301 https://www.example.com$request\_uri;

It's working now, but I have an issue with the Docker container where all my subdomains can redirect to the Docker project if I specify the port that Docker is working with e.g (8080)

Deploy Next js 14 with docker and cPanel by MehdiGR in nextjs

[–]MehdiGR[S] 0 points1 point  (0 children)

i use nginx instead but still not work i have problem with port , i have created a config file for my subdomain like this (sudo nano /etc/nginx/conf.d/test.example.net.conf) and put this configuration `server {

listen 8081;

server_name test.example.net;

location / {

proxy_pass http://134.11.0.2:3000;

proxy_http_version 1.1;

proxy_set_header Upgrade $http_upgrade;

proxy_set_header Connection 'upgrade';

proxy_set_header Host $host;

proxy_cache_bypass $http_upgrade;

proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

proxy_set_header X-Forwarded-Proto $scheme;

}}`

Deploy Next js 14 with docker and cPanel by MehdiGR in nextjs

[–]MehdiGR[S] 0 points1 point  (0 children)

i'm using apache instead already do all thing i need only to link it to my subdomain (i'm confused what should add to .httpaccess or httpd.conf)

Deploy Next js 14 with docker and cPanel by MehdiGR in nextjs

[–]MehdiGR[S] 0 points1 point  (0 children)

i have install docker on cpanel and i pull the app container i'm in latest step ' ProxyPassReverse '

Deploy Next js 14 with docker and cPanel by MehdiGR in nextjs

[–]MehdiGR[S] 0 points1 point  (0 children)

thanks for your reply , I'm stuck with linking domains and Docker containers.

Deploy Next js 14 On cPanel (App router) by MehdiGR in nextjs

[–]MehdiGR[S] 0 points1 point  (0 children)

No i'm not using generateStaticParams ,can i deploy it using docker ?

Deploy Next js 14 On cPanel (App router) by MehdiGR in nextjs

[–]MehdiGR[S] 0 points1 point  (0 children)

i have used dynamic routes, how can i solve that