mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 02:41:05 +00:00
docs: use sapper/cypress for e2e testing
This commit is contained in:
parent
0bb5e1952f
commit
ccdf6af78d
36 changed files with 4373 additions and 26 deletions
11
docs/src/server.js
Normal file
11
docs/src/server.js
Normal file
|
@ -0,0 +1,11 @@
|
|||
import sirv from "sirv";
|
||||
import polka from "polka";
|
||||
import * as sapper from "@sapper/server";
|
||||
|
||||
const { PORT, NODE_ENV } = process.env;
|
||||
|
||||
polka()
|
||||
.use(sirv("static", { dev: NODE_ENV === "development" }), sapper.middleware())
|
||||
.listen(PORT, (err) => {
|
||||
if (err) console.log("error", err);
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue