server {
	server_name dev.rapfeud.com;
	listen 80;

	location /_next/ {
		alias /rapfued/.next/;
	}

	location / {
		# reverse proxy for next server
		proxy_pass http://localhost: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;

		# we need to remove this 404 handling
		# because next's _next folder and own handling
		# try_files $uri $uri/ =404;
	}

}
