GetStaticPaths z Redux

import store from '.../store';

export const getStaticPaths: GetStaticPaths = async () => {
  const state = store.getState();

  const paths = state.user.users.map((user) => {
    return (
      {params: {username: user.username}}
    );
  });

  return {paths, fallback: false}
};
DrVonDevious