mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 10:51:07 +00:00
fix build and serverless READMEs
This commit is contained in:
2
.github/workflows/actions.yml
vendored
2
.github/workflows/actions.yml
vendored
@@ -22,7 +22,7 @@ jobs:
|
|||||||
- run: echo "VITE_GIT_SHA=$(git rev-parse --short HEAD)" >> app/.env
|
- run: echo "VITE_GIT_SHA=$(git rev-parse --short HEAD)" >> app/.env
|
||||||
- run: cd app && npm install && ./node_modules/.bin/tsc && ./node_modules/.bin/vite build --base=/PMTiles/
|
- run: cd app && npm install && ./node_modules/.bin/tsc && ./node_modules/.bin/vite build --base=/PMTiles/
|
||||||
- run: cd serverless/aws && npm install && npm run build && cp dist/lambda_function.zip ../../app/dist
|
- run: cd serverless/aws && npm install && npm run build && cp dist/lambda_function.zip ../../app/dist
|
||||||
- run: cd serverless/cloudflare && npm install && npm run build && cp dist/index.js ../../app/dist
|
- run: cd serverless/cloudflare && cp wrangler.toml.example wrangler.toml && npm install && npm run build && cp dist/index.js ../../app/dist
|
||||||
- run: cd spec/v3 && cp *.pmtiles ../../app/dist
|
- run: cd spec/v3 && cp *.pmtiles ../../app/dist
|
||||||
- run: cd js/examples && mkdir ../../app/dist/examples && cp *.html ../../app/dist/examples/
|
- run: cd js/examples && mkdir ../../app/dist/examples && cp *.html ../../app/dist/examples/
|
||||||
- name: build_app
|
- name: build_app
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# Installation
|
# Protomaps on AWS
|
||||||
|
|
||||||
See installation and configuration instructions at [Protomaps Docs: Deploy on AWS](https://protomaps.com/docs/cdn/aws)
|
See installation and configuration instructions at [Protomaps Docs: Deploy on AWS](https://protomaps.com/docs/cdn/aws)
|
||||||
|
|
||||||
@@ -14,7 +14,7 @@ Upload the resulting `dist/lambda_function.zip` using the Lambda console or copy
|
|||||||
|
|
||||||
## Test Events
|
## Test Events
|
||||||
|
|
||||||
Simulate tile requests in the Lambda development console with these JSON events:
|
JSON for simulating tile requests in the Lambda development console.
|
||||||
|
|
||||||
Lambda Function URLs:
|
Lambda Function URLs:
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,10 @@ See installation and configuration instructions at [Protomaps Docs: Deploy on Cl
|
|||||||
|
|
||||||
## Development
|
## Development
|
||||||
|
|
||||||
Option 1: with Wrangler, run `npm run start` to serve your Worker on http://localhost:8787. The cache will not be active in development.
|
### Web Console (basic)
|
||||||
|
|
||||||
Option 2: Generate the Workers script using `npm run build` and copy `dist/index.js` to the editor.
|
Generate the Workers script using `npm run build` and copy `dist/index.js` to the editor.
|
||||||
|
|
||||||
|
### Wrangler (advanced)
|
||||||
|
|
||||||
|
with Wrangler, run `npm run start` to serve your Worker on http://localhost:8787. The cache will not be active in development.
|
||||||
|
|||||||
Reference in New Issue
Block a user