Comments (2)
It looks like functions have to run out of an api
directory - https://vercel.com/docs/configuration#project/functions
But then the "rewrites"
mechanism can hopefully be used to say "all traffic to /*
should be handed off to this function". https://vercel.com/docs/configuration#project/rewrites
{
"rewrites": [
{ "source": "/about", "destination": "/about-our-company.html" },
{ "source": "/resize/:width/:height", "destination": "/api/sharp" },
{ "source": "/user/:id", "destination": "/api/user" },
{ "source": "/proxy/:match*", "destination": "https://example.com/:match*" }
]
}
So presumably we would need something like this:
{
"rewrites": [
{ "source": "/:path*", "destination": "/api/datasette.py/:match*" },
]
}
from datasette-publish-vercel.
This may be why I've not been able to test the Vercel fix for the percent encoding issue in #28 - vercel/vercel#5575 (comment)
from datasette-publish-vercel.
Related Issues (20)
- Signing secret not used HOT 1
- [Warning] The `name` property in vercel.json is deprecated
- template directory fails on non-default path HOT 1
- `--scope teamname` option HOT 2
- `datasette publish vercel` having issues with exporting JSON HOT 18
- Datasette 0.59 broke this plugin
- Site no longer deploys HOT 1
- Ability to specify a custom vercel.json HOT 2
- Use the new File System API HOT 1
- Query page .csv and .json links are not correctly URL-encoded on Vercel under unknown specific conditions HOT 8
- Ensure ds.invoke_startup() runs on startup HOT 1
- `--crossdb` option for publishing with `crossdb=True`
- Error! unknown or unexpected option: --no-clipboard HOT 4
- RuntimeError('There is no current event loop in thread %r.') HOT 10
- Use Vercel's Build Output API
- WARN! `--confirm` is deprecated, please use `--yes` instead HOT 4
- --setting allow_download 0 causes a 500 error HOT 3
- Bug cannot read properties of undefined HOT 7
- Error: No such command 'vercel'. HOT 1
- Unable to deploy using Vercel CLI 32.5.6 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from datasette-publish-vercel.