Crawl chain: Jsoup → Jina Reader → Playwright (headless Chromium). Error page detection (403, Access Denied, etc.) triggers next fallback. Switch to exploded classpath for Playwright driver-bundle compatibility. Fix Next.js standalone static file serving with symlink. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
27 lines
731 B
JavaScript
27 lines
731 B
JavaScript
module.exports = {
|
|
apps: [
|
|
{
|
|
name: "sundol-backend",
|
|
script: "./start-backend.sh",
|
|
interpreter: "/bin/bash",
|
|
cwd: "/home/opc/sundol",
|
|
env: {
|
|
JAVA_HOME: "/usr/lib/jvm/java-21",
|
|
PLAYWRIGHT_NODEJS_PATH: "/home/opc/.playwright-driver/driver/linux/node",
|
|
},
|
|
},
|
|
{
|
|
name: "sundol-frontend",
|
|
script: "node",
|
|
args: "sundol-frontend/.next/standalone/server.js",
|
|
cwd: "/home/opc/sundol",
|
|
env: {
|
|
PORT: 3000,
|
|
HOSTNAME: "0.0.0.0",
|
|
NEXT_PUBLIC_API_URL: "https://sundol.cloud-handson.com",
|
|
NEXT_PUBLIC_GOOGLE_CLIENT_ID: "906390686133-vpqsisodkg6uqui469hg8dhupbejoa0d.apps.googleusercontent.com",
|
|
},
|
|
},
|
|
],
|
|
};
|