this repo has no description smallweb.run
smallweb
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

improve default workspace

pomdtr 71d919ee 04968ef5

+9 -5
-5
cmd/embed/workspace/api/main.ts
··· 1 - export default { 2 - fetch: (_req: Request) => { 3 - return new Response("Welcome to Smallweb!"); 4 - } 5 - }
+8
cmd/embed/workspace/example/main.ts
··· 1 + export default { 2 + fetch: (_req: Request) => { 3 + return new Response("Welcome to Smallweb!"); 4 + }, 5 + run: (_args: string[]) => { 6 + console.log("Welcome to Smallweb!"); 7 + }, 8 + };
+1
cmd/init.go
··· 49 49 if err != nil { 50 50 return fmt.Errorf("failed to marshal config: %w", err) 51 51 } 52 + configBytes = append(configBytes, '\n') 52 53 53 54 if err := os.WriteFile(filepath.Join(workspaceDir, ".smallweb", "config.json"), configBytes, 0644); err != nil { 54 55 return fmt.Errorf("failed to write config: %w", err)