Skip to content

πŸ› BUG: Unterminated inline array C:\Users\Anonyms\Documents\Job portal\job-portal-backend\wrangler.toml:23:11: 23 β”‚ headers = {Β #8526

Open
@gcebece

Description

@gcebece

Which Cloudflare product(s) does this pertain to?

Workers for Platforms

What versions are you using?

wrangler": "^4.0.0"

What operating system and version are you using?

Windows 11

Please provide a link to a minimal reproduction

No response

Describe the Bug

> [email protected] deploy
> node deploy.js

πŸš€ Deploying Job Portal Backend to Cloudflare Workers

πŸ“¦ Checking dependencies...

πŸ”§ Generating Prisma client...

> npx prisma generate
Environment variables loaded from .env
Prisma schema loaded from prisma\schema.prisma

βœ” Generated Prisma Client (v6.5.0) to .\node_modules\@prisma\client in 181ms

Start by importing your Prisma Client (See: https://pris.ly/d/importing-client)

Tip: Want real-time updates to your database without manual polling? Discover how with Pulse: https://pris.ly/tip-0-pulse


πŸ—οΈ Building the project...

> npm run build

> [email protected] build
> tsc


πŸš€ Deploying to Cloudflare Workers...

> npx wrangler deploy

 ⛅️ wrangler 4.0.0
------------------


X [ERROR] Unterminated inline array

    C:\Users\Coder\Documents\Job portal\job-portal-backend\wrangler.toml:23:11:
      23 β”‚ headers = {
         β•΅            ^


Error executing command: npx wrangler deploy
Command failed: npx wrangler deploy




name = "job-portal-backend"
main = "dist/index.js"
compatibility_date = "2025-1-20"
compatibility_flags = ["nodejs_compat"]

[build]
command = "npm run build"

[vars]
JWT_SECRET = "your-secret-key-change-in-production"
DATABASE_URL = ""
DIRECT_URL = ""

# CORS configuration
[[routes]]
pattern = "/*"

[[routes]]
pattern = "/*"
method = "OPTIONS"
handler = "static"
status_code = 204
headers = { 
  "Access-Control-Allow-Origin" = "*",
  "Access-Control-Allow-Methods" = "GET, POST, PUT, DELETE, OPTIONS",
  "Access-Control-Allow-Headers" = "Content-Type, Authorization",
  "Access-Control-Max-Age" = "86400"
}


# Remove KV namespaces as we're using PostgreSQL now
# [[kv_namespaces]]
# binding = "USERS_KV"
# id = "ed70fd12423a48419f1dd1003729b3ea"
# preview_id = "696af2075a444fe18888f2eb235ace38"

# [[kv_namespaces]]
# binding = "JOBS_KV"
# id = "b748b82fdc81414ba2c7fbbdae13bda6"
# preview_id = "3b323452d88e4e0c9245e1e7a8d46d6e"

# [[kv_namespaces]]
# binding = "APPLICATIONS_KV"
# id = "388b469978cb4d9e9d9cfb19118ce8b8"
# preview_id = "fd2924cecccf4ed99324b9442373f65f"

# [[kv_namespaces]]
# binding = "PROFILES_KV"
# id = "bb7b0221f97940539e81fe6118f2253b"
# preview_id = "50f10795c5f8409f950463a21e2013e8"

[triggers]
crons = []

Please provide any relevant error logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting reporter responseNeeds clarification or followup from OPbugSomething that isn't working

    Type

    No type

    Projects

    • Status

      Untriaged

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions