dherault / dherault/serverless-offline

Any way to deactivate http-proxy ?

Open
#1,669 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5.3k
Forks
811
Avg merge
2d 4h
Merged PRs (30d)
3

Description

I'm searching for a way to deactivate http-proxy on dev.
So http proxy do not seems to work for my resources in serverless offline so i turned resourceRoutes to false.
My idea is my lambda is actually going to serve the right data but on dev only.
Unfortunately it only works if i comment out the events or else i get conflicting routes...

![image](https://user-images.githubusercontent.com/35202750/224234220-cc82c02b-0e01-4341-98da-12e63b8a3d21.png)

My current way to deal with this is to comment the code and get my ci/cd to uncomment it... That's pretty ugly. I'm wondering if there is anyway to make it works without comments ?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.