AkiA
Convex Community11mo ago
4 replies
Aki

I would like to add to Functions.

However, when I did npx convex dev, nothing was added to the deployed functions.
I saw in the project log that it was deployed, so I think I have the right deploy destination.

I am not sure which one is the problem, so I will list the possible ones.

We use next.js and convex.
You can find my urls.ts in the convex folder
It should be added to functions when deployed
import { query, mutation } from "./_generated/server";
import { v } from "convex/values";

export const getURL = query({
  args: {
    id: v.string()
  },
  handler: async (ctx, { id }) => {
    const url = await ctx.db.query("url").filter(q => q.eq(q.field("_id"), id)).first();
    return url;
  },
});


Also, npx convex dev --verbose skipped all files in _generated.
Below is the log of that case.
aki@Spanner ~ % npx convex dev --verbose
[verbose] 2025-02-27T23:19:42.864Z Skipping convex/_generated/api.d.ts
[verbose] 2025-02-27T23:19:42.865Z Skipping convex/_generated/api.js
[verbose] 2025-02-27T23:19:42.866Z Skipping convex/_generated/dataModel.d.ts
[verbose] 2025-02-27T23:19:42.866Z Skipping convex/_generated/server.d.ts
[verbose] 2025-02-27T23:19:42.866Z Skipping convex/_generated/server.js
Codegen finished.
[verbose] 2025-02-27T23:19:42.873Z Skipping convex/_generated/api.d.ts
[verbose] 2025-02-27T23:19:42.873Z Skipping convex/_generated/api.js
[verbose] 2025-02-27T23:19:42.873Z Skipping convex/_generated/dataModel.d.ts
[verbose] 2025-02-27T23:19:42.873Z Skipping convex/_generated/server.d.ts
[verbose] 2025-02-27T23:19:42.873Z Skipping convex/_generated/server.js
Convex's runtime modules:  []
Remote config will be overwritten with the following changes:


Also, when I do npx convex dev and edit a file in the convex folder, it is no longer automatically deployed after I can no longer add it to functions, whereas it usually does so automatically.
Was this page helpful?