Can't access Pages through wrangler dev

Previously I've only deployed my pages app to production but I'm messing around with a function and wanted to test it locally with more debugging tools. I ran 'wrangler pages dev' to try to spin it up yet when I navigate to https://localhost:8788/ in a browser I get a generic "This localhost page can’t be found" error any ideas?
3 Replies
MassiveR3T4RD
MassiveR3T4RD10mo ago
please ensure you are in the correct directory and try npx wrangler pages dev
coolio2244242
coolio2244242OP10mo ago
what would be the "correct directory" in this case? the base project directory?
MassiveR3T4RD
MassiveR3T4RD9mo ago
yes or try to give it a directory by using . or / after dev in the command

Did you find this page helpful?