Sun「無用」
Sun「無用」
Explore posts from servers
DDeno
Created by Abdullah Khan on 1/21/2025 in #help
Deno needs better memory leaks debugging tools
And about memory leaks, don't except much, you're still writing js, not c
3 replies
DDeno
Created by Abdullah Khan on 1/21/2025 in #help
Deno needs better memory leaks debugging tools
Create an issue on their gh and put that snapshot on a image and/or gist, so people can see it more reliably
3 replies
DDeno
Created by Nick_O on 1/21/2025 in #help
Best way to handle new static assets
Yea, just tested it, you'll need to manually reload the server, that's why they're also watching the static folder. And it's probably for optimization (if it's not for optimization, it's weird), but I just tried creating a lot of files and it still reloaded kinda fast (not as fast, but still fast enough)
7 replies
DDeno
Created by Nick_O on 1/21/2025 in #help
Best way to handle new static assets
I've never thought much about it, though, it reloads very fast, so it shouldn't be a problem, but I've also never used a big project with fresh, so yea
7 replies
DDeno
Created by Nick_O on 1/21/2025 in #help
Best way to handle new static assets
but then I think you'll need to manually reload? I think fresh generates a tree with the resources, so you'll probably need to reload the server after manipulating all the static files
7 replies
DDeno
Created by Nick_O on 1/21/2025 in #help
Best way to handle new static assets
"start": "deno run -A --watch=static/,routes/ dev.ts",
"start": "deno run -A --watch=static/,routes/ dev.ts",
Right now it's like that, but you can just remove that static/ folder from there
7 replies
DDeno
Created by Nick_O on 1/21/2025 in #help
Best way to handle new static assets
You can just change the script in your deno.json, the start script to be exact
7 replies
DDeno
Created by Sun「無用」 on 12/30/2024 in #help
Prisma in deno
No description
17 replies
DDeno
Created by Sun「無用」 on 12/30/2024 in #help
Prisma in deno
I'm starting to think that prisma doesn't like me
17 replies
DDeno
Created by Sun「無用」 on 12/30/2024 in #help
Prisma in deno
No description
17 replies
DDeno
Created by Sun「無用」 on 12/30/2024 in #help
Prisma in deno
deno run -A --allow-scripts --unstable-detect-cjs npm:prisma@latest generate that was the command I ran
17 replies
DDeno
Created by Sun「無用」 on 12/30/2024 in #help
Prisma in deno
// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema

generator client {
provider = "prisma-client-js"
previewFeatures = ["deno"]
output = "../generated/client"
}

datasource db {
provider = "sqlite"
url = env("DATABASE_URL")
}

model Task {
id String @id @default(cuid())
name String
completedAt DateTime? @map("completed_at")

@@map("tasks")
}
// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema

generator client {
provider = "prisma-client-js"
previewFeatures = ["deno"]
output = "../generated/client"
}

datasource db {
provider = "sqlite"
url = env("DATABASE_URL")
}

model Task {
id String @id @default(cuid())
name String
completedAt DateTime? @map("completed_at")

@@map("tasks")
}
That's all I have in the prisma file
17 replies
DDeno
Created by Sun「無用」 on 12/30/2024 in #help
Prisma in deno
No description
17 replies
DDeno
Created by Sun「無用」 on 12/30/2024 in #help
Prisma in deno
gonna test it now, sry for taking so long
17 replies
DDeno
Created by Sun「無用」 on 12/30/2024 in #help
Prisma in deno
that's kinda a lot of stuff, how do you know those? I haven't seen any info on that
17 replies
DDeno
Created by Sun「無用」 on 12/30/2024 in #help
Prisma in deno
I didn't send any messages bc I kinda gave up on prisma with deno, it just doesn't work properly
17 replies
DDeno
Created by Sun「無用」 on 12/30/2024 in #help
Prisma in deno
I kinda forgot to reply here, but the problem persists even with that --unstable-detect-cjs flag
17 replies
DDeno
Created by Sun「無用」 on 12/30/2024 in #help
Prisma in deno
Anyone have ever had that problem?
17 replies
DDeno
Created by anggoran on 4/30/2024 in #help
Writing CSS in Fresh
Also it's not 100% best solution, I've never seen a big site using it, they normally write custom css for it or their own solution (styleX)
10 replies
DDeno
Created by anggoran on 4/30/2024 in #help
Writing CSS in Fresh
on counterpoint, you'll take more time looking at docs than needed, mostly bc you'll need to relearn css and that's costy. Also even if people say learning tw is easy, reading it (which is more important) is not that easy, mostly bc some of the elements have a lot of classes and if you're using something like daisyui, which "hides" the css, so you'll need to actually read a lot of docs, just to make a simple change
10 replies