Skip to content

Commit

Permalink
fix: flake source fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbchron committed Mar 13, 2024
1 parent ad98ce0 commit 9002c04
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@
jpegFilter = filterGenerator ".*jpeg$";
pngFilter = filterGenerator ".*png$";
icoFilter = filterGenerator ".*ico$";
mdFilter = filterGenerator ".*md$";
protoOrCargo = path: type:
(craneLib.filterCargoSources path type) || (cssFilter path type) || (jsFilter path type) || (ttfFilter path type) || (woff2Filter path type) || (webpFilter path type) || (jpegFilter path type) || (pngFilter path type) || (icoFilter path type);
(craneLib.filterCargoSources path type) || (cssFilter path type) || (jsFilter path type) || (ttfFilter path type) || (woff2Filter path type) || (webpFilter path type) || (jpegFilter path type) || (pngFilter path type) || (icoFilter path type) || (mdFilter path type);

# Include more types of files in our bundle
src = lib.cleanSourceWith {
Expand Down Expand Up @@ -92,6 +93,7 @@
mkdir -p $out/bin
cp target/release/server $out/bin/blog
cp -r target/site $out/bin/
cp target/release/hash.txt $out/bin/
cp -r content $out/bin/
'';
# Prevent cargo test and nextest from duplicating tests
Expand Down Expand Up @@ -128,7 +130,7 @@
WorkingDir = "${blog}/bin";
Env = [
"LEPTOS_OUTPUT_NAME=blog"
"LEPTOS_SITE_ROOT=blog"
"LEPTOS_SITE_ROOT=site"
"LEPTOS_SITE_PKG_DIR=pkg"
"LEPTOS_SITE_ADDR=0.0.0.0:3000"
"LEPTOS_RELOAD_PORT=3001"
Expand Down

0 comments on commit 9002c04

Please sign in to comment.