Skip to content

Commit

Permalink
Switch to cloudflare for info. site
Browse files Browse the repository at this point in the history
  • Loading branch information
strideynet committed Nov 16, 2024
1 parent bffae2e commit 5efebe7
Show file tree
Hide file tree
Showing 6 changed files with 10,212 additions and 7,675 deletions.
18 changes: 18 additions & 0 deletions devbox.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.12.0/.schema/devbox.schema.json",
"packages": [
"[email protected]",
"[email protected]"
],
"shell": {
"init_hook": [
"echo 'Welcome to devbox!' > /dev/null"
],
"scripts": {
"test": [
"echo \"Error: no test specified\" && exit 1"
]
}
}
}

118 changes: 118 additions & 0 deletions devbox.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
{
"lockfile_version": "1",
"packages": {
"[email protected]": {
"last_modified": "2024-11-03T14:18:04Z",
"plugin_version": "0.0.2",
"resolved": "github:NixOS/nixpkgs/4ae2e647537bcdbb82265469442713d066675275#nodejs_23",
"source": "devbox-search",
"version": "23.1.0",
"systems": {
"aarch64-darwin": {
"outputs": [
{
"name": "out",
"path": "/nix/store/ly01l9cc6lxyzfwf60k0fhxrfsbzxgvi-nodejs-23.1.0",
"default": true
},
{
"name": "libv8",
"path": "/nix/store/329kf3k7s5xldqm1hbb3hqhq41qqch0d-nodejs-23.1.0-libv8"
}
],
"store_path": "/nix/store/ly01l9cc6lxyzfwf60k0fhxrfsbzxgvi-nodejs-23.1.0"
},
"aarch64-linux": {
"outputs": [
{
"name": "out",
"path": "/nix/store/0n7dihyccg34km0x1j39njx9kkc3v1lw-nodejs-23.1.0",
"default": true
},
{
"name": "libv8",
"path": "/nix/store/ql540hc7qy2idfmv5jrf0vg8kisq6b40-nodejs-23.1.0-libv8"
}
],
"store_path": "/nix/store/0n7dihyccg34km0x1j39njx9kkc3v1lw-nodejs-23.1.0"
},
"x86_64-darwin": {
"outputs": [
{
"name": "out",
"path": "/nix/store/rn9a7zgmlsg4c6jzdyslwj0hapgjlkpw-nodejs-23.1.0",
"default": true
},
{
"name": "libv8",
"path": "/nix/store/gr0zyx9kdmj62f8kaw6h2g9k6iypin3l-nodejs-23.1.0-libv8"
}
],
"store_path": "/nix/store/rn9a7zgmlsg4c6jzdyslwj0hapgjlkpw-nodejs-23.1.0"
},
"x86_64-linux": {
"outputs": [
{
"name": "out",
"path": "/nix/store/bc1blqcb391vjj251had3dbrnq5rb7md-nodejs-23.1.0",
"default": true
},
{
"name": "libv8",
"path": "/nix/store/ba7nrcdqp8b6mk1lfc15gz4s97jwk2sc-nodejs-23.1.0-libv8"
}
],
"store_path": "/nix/store/bc1blqcb391vjj251had3dbrnq5rb7md-nodejs-23.1.0"
}
}
},
"[email protected]": {
"last_modified": "2024-11-03T14:18:04Z",
"resolved": "github:NixOS/nixpkgs/4ae2e647537bcdbb82265469442713d066675275#pnpm",
"source": "devbox-search",
"version": "9.12.3",
"systems": {
"aarch64-darwin": {
"outputs": [
{
"name": "out",
"path": "/nix/store/jnfsa8swb9f5ac3s1mc0pnq6zjr69i0b-pnpm-9.12.3",
"default": true
}
],
"store_path": "/nix/store/jnfsa8swb9f5ac3s1mc0pnq6zjr69i0b-pnpm-9.12.3"
},
"aarch64-linux": {
"outputs": [
{
"name": "out",
"path": "/nix/store/cxqr84mgwxp3c5ns9smi1ylc24q5r4pf-pnpm-9.12.3",
"default": true
}
],
"store_path": "/nix/store/cxqr84mgwxp3c5ns9smi1ylc24q5r4pf-pnpm-9.12.3"
},
"x86_64-darwin": {
"outputs": [
{
"name": "out",
"path": "/nix/store/zigjwhgz3w2n63dqcpfxiz1abgf1vj3l-pnpm-9.12.3",
"default": true
}
],
"store_path": "/nix/store/zigjwhgz3w2n63dqcpfxiz1abgf1vj3l-pnpm-9.12.3"
},
"x86_64-linux": {
"outputs": [
{
"name": "out",
"path": "/nix/store/lw6676szir9gwzh4l9qmbnh2w8v84glg-pnpm-9.12.3",
"default": true
}
],
"store_path": "/nix/store/lw6676szir9gwzh4l9qmbnh2w8v84glg-pnpm-9.12.3"
}
}
}
}
}
2 changes: 1 addition & 1 deletion web/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dev-%: install-%
@pnpm --filter $* dev

build-%: install-%
@SK_ADAPTER=vercel pnpm --filter $* build
@SK_ADAPTER=cloudflare pnpm --filter $* build

test-%: install-%
@pnpm --filter $* test
Expand Down
5 changes: 4 additions & 1 deletion web/info/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,8 @@
"vite": "^4.3.6",
"vitest": "^0.32.2"
},
"type": "module"
"type": "module",
"dependencies": {
"@sveltejs/adapter-cloudflare": "^4.7.4"
}
}
6 changes: 3 additions & 3 deletions web/info/svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import NodeAdapter from '@sveltejs/adapter-node';
import VercelAdapter from '@sveltejs/adapter-vercel';
import CloudflareAdapter from '@sveltejs/adapter-cloudflare';
import { vitePreprocess } from '@sveltejs/kit/vite';
import Preprocess from 'svelte-preprocess';

Expand All @@ -20,8 +20,8 @@ const config = {
$routes: 'src/routes'
},
adapter:
process.env.SK_ADAPTER === 'vercel'
? VercelAdapter()
process.env.SK_ADAPTER === 'cloudflare'
? CloudflareAdapter()
: NodeAdapter({ out: './dist' }),
files: {
lib: 'src/lib',
Expand Down
Loading

0 comments on commit 5efebe7

Please sign in to comment.