Skip to content

Build is failing due to error in middleware.ts #53

@atticusliu

Description

@atticusliu

Thanks for the great sample project. I've been able to implement all of the code in the project, but my build is failing due to an issue I'm seeing in middleware.ts:

The Edge Function "middleware" is referencing unsupported modules: - __vc__ns__/0/middleware.js: app/auth.config

My middleware.ts and auth.config.ts are exactly the same as those in the project. I don't know what else I can do here. Please advise. Thanks.

Activity

changed the title [-]My build is failing due to error in middleware.ts[/-] [+]Build is failing due to error in middleware.ts[/+] on Feb 4, 2024
atticusliu

atticusliu commented on Feb 4, 2024

@atticusliu
Author

Just kidding - all I had to do was follow the instructions here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Build is failing due to error in middleware.ts · Issue #53 · vercel/nextjs-postgres-auth-starter