mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-08 21:15:18 +09:00
## Description This PR adds support for templates. - Extracted out the defaults like `.vercelignore` and `image-loader`. As, if the users re using some other service providers they come as default and won't help. - Add prompt for selecting a template at the start of the init process. - Added template for `netlify-functions` and `netlify-edge-functions`. ## Code Review - [ ] hi @istarkov , I need you to do - conceptual review (architecture, feature-correctness) - detailed review (read every line) - test it on preview - [ ] hi @TrySound , I need you to do - conceptual review (architecture, feature-correctness) - detailed review (read every line) - test it on preview ## Before requesting a review - [x] made a self-review - [x] added inline comments where things may be not obvious (the "why", not "what") ## Before merging - [x] tested locally
14 lines
360 B
JavaScript
14 lines
360 B
JavaScript
/**
|
|
* We use mjs extension as constants in this file is shared with the build script
|
|
* and we use `node --eval` to extract the constants.
|
|
*/
|
|
export const assetBaseUrl = "/assets/";
|
|
export const imageBaseUrl = "/assets/";
|
|
|
|
/**
|
|
* @type {import("@webstudio-is/image").ImageLoader}
|
|
*/
|
|
export const imageLoader = ({ src }) => {
|
|
return imageBaseUrl + src;
|
|
};
|